Skip to content

Commit

Permalink
Fixed issue #13324: Limesurvey crash after activating webserver authe…
Browse files Browse the repository at this point in the history
…ntication plugin
  • Loading branch information
Shnoulle committed Feb 9, 2018
1 parent cd7ead6 commit 1230ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/core/plugins/Authwebserver/Authwebserver.php
Expand Up @@ -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 {
Expand Down

0 comments on commit 1230ac2

Please sign in to comment.