From: Stéphane Jacob Date: Fri, 18 Mar 2011 22:56:38 +0000 (+0100) Subject: Removes names, sex... edition rights from xnet admin for activated xnet accounts. X-Git-Tag: xorg/1.1.0~26^2~13 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1d6870e10d8fdc0bed8bdb2610772b121b5f9bc2;p=platal.git Removes names, sex... edition rights from xnet admin for activated xnet accounts. Signed-off-by: Stéphane Jacob --- diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index 54e7938..6a610a4 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -1006,7 +1006,7 @@ class XnetGrpModule extends PLModule // Update user info $email_changed = (!$user->profile() && strtolower($user->forlifeEmail()) != strtolower(Post::v('email'))); $from_email = $user->forlifeEmail(); - if ($user->type == 'virtual' || $user->type == 'xnet') { + if ($user->type == 'virtual' || ($user->type == 'xnet' && !$user->perms)) { XDB::query('UPDATE accounts SET full_name = {?}, directory_name = {?}, display_name = {?}, sex = {?}, email = {?}, type = {?} diff --git a/templates/xnetgrp/membres-edit.tpl b/templates/xnetgrp/membres-edit.tpl index 13ee689..2be988b 100644 --- a/templates/xnetgrp/membres-edit.tpl +++ b/templates/xnetgrp/membres-edit.tpl @@ -90,7 +90,7 @@ - {if $user->type eq 'virtual' || $user->type eq 'xnet'} + {if $user->type eq 'virtual' || ($user->type eq 'xnet' && !$user->perms)} Type d'utilisateur :