From 0d486971a06437291f7392d16fb6fdb131d54267 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 16 Jan 2015 12:11:21 +0100 Subject: [PATCH] Fix the new permission hook --- .../limesurvey/application/config/config.php/25ProfileHook | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/etc/e-smith/templates/usr/share/limesurvey/application/config/config.php/25ProfileHook b/root/etc/e-smith/templates/usr/share/limesurvey/application/config/config.php/25ProfileHook index a34e921..a0370aa 100644 --- a/root/etc/e-smith/templates/usr/share/limesurvey/application/config/config.php/25ProfileHook +++ b/root/etc/e-smith/templates/usr/share/limesurvey/application/config/config.php/25ProfileHook @@ -33,9 +33,9 @@ function hook_get_auth_webserver_profile(\$user_name) { function hook_get_auth_webserver_permissions(\$user_name) { if ((isset(\$_SERVER['HTTP_USER_GROUPS']) && ( - in_array('admins', preg_split("/;\s?/", \$_SERVER['HTTP_USER_GROUPS'])) || - in_array('surveyadmins', preg_split("/;\s?/", \$_SERVER['HTTP_USER_GROUPS'])) - )) || (\$login == "admin")){ + in_array('admins', preg_split("/;\\s?/", \$_SERVER['HTTP_USER_GROUPS'])) || + in_array('surveyadmins', preg_split("/;\\s?/", \$_SERVER['HTTP_USER_GROUPS'])) + )) || (\$user_name == "admin")){ return Array('superadmin' => Array('read'=>true)); } else{