mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Sometimes you just herp the derp so hard it herpderps
This commit is contained in:
parent
7ed3acbbd8
commit
c83659eff7
@ -26,7 +26,7 @@ class ModuleActionController extends ActionController
|
||||
protected function prepareInit()
|
||||
{
|
||||
$this->moduleInit();
|
||||
if ($this->requiresLogin()
|
||||
if (($this->Auth()->isAuthenticated() || $this->requiresLogin())
|
||||
&& $this->getFrontController()->getDefaultModule() !== $this->getModuleName()) {
|
||||
$this->assertPermission(Manager::MODULE_PERMISSION_NS . $this->getModuleName());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user