From 1d6870e10d8fdc0bed8bdb2610772b121b5f9bc2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 18 Mar 2011 23:56:38 +0100 Subject: [PATCH] Removes names, sex... edition rights from xnet admin for activated xnet accounts. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/xnetgrp.php | 2 +- templates/xnetgrp/membres-edit.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 : -- 2.1.4