mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
Merge pull request #3230 from Icinga/bugfix/application-state-log-out-2882
/application-state: ignore unauthenticated requests
This commit is contained in:
commit
44fccfff4d
@ -14,9 +14,13 @@ use Icinga\Web\Session;
|
||||
*/
|
||||
class ApplicationStateController extends Controller
|
||||
{
|
||||
protected $requiresAuthentication = false;
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
if ($this->Auth()->isAuthenticated()) {
|
||||
if (isset($_COOKIE['icingaweb2-session'])) {
|
||||
$last = (int) $_COOKIE['icingaweb2-session'];
|
||||
} else {
|
||||
@ -53,6 +57,7 @@ class ApplicationStateController extends Controller
|
||||
$this->getResponse()->setHeader('X-Icinga-Announcements', 'refresh', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->getResponse()->setHeader('X-Icinga-Container', 'ignore', true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user