Check if user role has changed while the session is open
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user