Sometimes you just herp the derp so hard it herpderps

This commit is contained in:
Eric Lippmann 2016-09-29 16:15:35 +02:00
parent 7ed3acbbd8
commit c83659eff7
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}