Check if user role has changed while the session is open

This commit is contained in:
Frédéric Guillot
2019-01-30 20:59:25 -08:00
parent 19ea9ed620
commit 61a55c8888
3 changed files with 12 additions and 2 deletions

View File

@@ -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());
}
/**