Check if user role has changed while the session is open
This commit is contained in:
@@ -20,7 +20,8 @@ class AuthenticationMiddleware extends BaseMiddleware
|
||||
public function execute()
|
||||
{
|
||||
if (! $this->authenticationManager->checkCurrentSession()) {
|
||||
throw AccessForbiddenException::getInstance()->withoutLayout();
|
||||
$this->response->redirect($this->helper->url->to('AuthController', 'login'));
|
||||
return;
|
||||
}
|
||||
|
||||
if (! $this->isPublicAccess()) {
|
||||
|
||||
Reference in New Issue
Block a user