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{