Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
[auth] When guest is enabled, make sure to invalidateLoadedRepositori…
Browse files Browse the repository at this point in the history
…es() at login time, otherwise they are already in the session. Fix #1002
  • Loading branch information
cdujeu committed Dec 3, 2015
1 parent 86a9b04 commit b2b7257
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/core/classes/class.AuthService.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,11 @@ public static function logUser($user_id, $pwd, $bypass_pwd = false, $cookieLogin
AJXP_Logger::warning(__CLASS__, "Login failed", array("user" => $user_id, "error" => "Locked user"));
return -1;
}

if(AuthService::$useSession && ConfService::getCoreConf("ALLOW_GUEST_BROWSING", "auth")){
ConfService::getInstance()->invalidateLoadedRepositories();
}

if ($authDriver->isAjxpAdmin($user_id)) {
$user->setAdmin(true);
}
Expand Down

0 comments on commit b2b7257

Please sign in to comment.