mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
8f85a66e13
commit
64954e9924
@ -117,6 +117,13 @@ class Manager
|
|||||||
public function authenticateFromSession()
|
public function authenticateFromSession()
|
||||||
{
|
{
|
||||||
$this->user = Session::getSession()->get('user');
|
$this->user = Session::getSession()->get('user');
|
||||||
|
|
||||||
|
if ($this->user
|
||||||
|
&& array_key_exists('REMOTE_USER', $_SERVER)
|
||||||
|
&& $this->user->getUsername() !== $_SERVER['REMOTE_USER']
|
||||||
|
) {
|
||||||
|
$this->removeAuthorization();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user