From b3454c7f74fd5fd547c6e36f3eecd7740d9bf61f Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 31 May 2008 23:10:55 +0200 Subject: [PATCH] Fix 'perms' field in auth groupex Signed-off-by: Florent Bruneau --- modules/auth/auth.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/auth/auth.inc.php b/modules/auth/auth.inc.php index 83921e1..5e9746a 100644 --- a/modules/auth/auth.inc.php +++ b/modules/auth/auth.inc.php @@ -42,7 +42,9 @@ function gpex_make($chlg, $privkey, $datafields, $charset) foreach ($fieldarr as $val) { /* on verifie qu'on n'a pas demandé une variable inexistante ! */ - if (S::has($val)) { + if ($val == 'perms') { + $params .= gpex_prepare_param($val, S::has_perms() ? 'admin' : 'user', $tohash, $charset); + } else if (S::has($val)) { $params .= gpex_prepare_param($val, S::v($val), $tohash, $charset); } else if (isset($personnal_data[$val])) { $params .= gpex_prepare_param($val, $personnal_data[$val], $tohash, $charset); -- 2.1.4