From 1230ac2f512655b545c81959b85bb4ca70842fb9 Mon Sep 17 00:00:00 2001 From: Denis Chenu Date: Fri, 9 Feb 2018 10:48:08 +0100 Subject: [PATCH] Fixed issue #13324: Limesurvey crash after activating webserver authentication plugin --- application/core/plugins/Authwebserver/Authwebserver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/core/plugins/Authwebserver/Authwebserver.php b/application/core/plugins/Authwebserver/Authwebserver.php index 6bd26776a15..275940635d5 100644 --- a/application/core/plugins/Authwebserver/Authwebserver.php +++ b/application/core/plugins/Authwebserver/Authwebserver.php @@ -106,7 +106,7 @@ public function newUserSession() $aUserProfile = $this->api->getConfigKey('auth_webserver_autocreate_profile'); } } else { - if (Permission::model()->find('permission = :permission AND uid=:uid AND read_p =1', array(":permission" => 'auth_webserver', ":uid"=>$user->uid))) { // Don't use Permission::model()->hasGlobalPermission : it's update the plugins event (and remove user/pass from event) + if (Permission::model()->hasGlobalPermission('auth_webserver', 'read', $oUser->uid)) { $this->setAuthSuccess($oUser); return; } else {