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…
Reference in New Issue