parent
8f85a66e13
commit
64954e9924
|
@ -117,6 +117,13 @@ class Manager
|
|||
public function authenticateFromSession()
|
||||
{
|
||||
$this->user = Session::getSession()->get('user');
|
||||
|
||||
if ($this->user
|
||||
&& array_key_exists('REMOTE_USER', $_SERVER)
|
||||
&& $this->user->getUsername() !== $_SERVER['REMOTE_USER']
|
||||
) {
|
||||
$this->removeAuthorization();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue