diff options
author | Frédéric Guillot <fred@kanboard.net> | 2019-01-30 20:59:25 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2019-01-30 20:59:25 -0800 |
commit | 61a55c888889a1ec3376a7a3bba230dc15a378a4 (patch) | |
tree | a7bd979f04aeed56e7c101e7a6dad6cd52c6404d /app/Auth | |
parent | 19ea9ed6209b36cba5cb8f96224d9e3a0c022c93 (diff) |
Check if user role has changed while the session is open
Diffstat (limited to 'app/Auth')
-rw-r--r-- | app/Auth/DatabaseAuth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Auth/DatabaseAuth.php b/app/Auth/DatabaseAuth.php index 84a1e019..1982f576 100644 --- a/app/Auth/DatabaseAuth.php +++ b/app/Auth/DatabaseAuth.php @@ -84,7 +84,7 @@ class DatabaseAuth extends Base implements PasswordAuthenticationProviderInterfa */ public function isValidSession() { - return $this->userModel->isActive($this->userSession->getId()); + return $this->userModel->isValidSession($this->userSession->getId(), $this->userSession->getRole()); } /** |