projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db05227
)
Do not update email for X accounts in Xnet group page.
author
Stéphane Jacob
<sj@m4x.org>
Sun, 4 Dec 2011 13:33:45 +0000
(14:33 +0100)
committer
Stéphane Jacob
<sj@m4x.org>
Sun, 4 Dec 2011 13:33:45 +0000
(14:33 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/xnetgrp.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/xnetgrp.php
b/modules/xnetgrp.php
index
acf1b08
..
e43b528
100644
(file)
--- a/
modules/xnetgrp.php
+++ b/
modules/xnetgrp.php
@@
-1268,7
+1268,8
@@
class XnetGrpModule extends PLModule
// Updates email.
$new_email = strtolower(Post::t('email'));
- if (!$user->perms && require_email_update($user, $new_email)) {
+ if (($user->type == 'virtual' || ($user->type == 'xnet' && !$user->perms))
+ && require_email_update($user, $new_email)) {
XDB::query('UPDATE accounts
SET email = {?}
WHERE uid = {?}',