From 8358e9165c49f7134feafeb5e3449ee9f464f04f Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 24 Jul 2015 15:11:21 +0200 Subject: [PATCH] Don't require the module permission for the default module refs #9644 --- library/Icinga/Web/Controller/ModuleActionController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Controller/ModuleActionController.php b/library/Icinga/Web/Controller/ModuleActionController.php index b6d2274eb..21a40900e 100644 --- a/library/Icinga/Web/Controller/ModuleActionController.php +++ b/library/Icinga/Web/Controller/ModuleActionController.php @@ -35,7 +35,9 @@ class ModuleActionController extends ActionController $this->_helper->layout()->moduleName = $this->moduleName; $this->view->translationDomain = $this->moduleName; $this->moduleInit(); - $this->assertPermission(Manager::MODULE_PERMISSION_NS . $this->moduleName); + if ($this->getFrontController()->getDefaultModule() !== $this->moduleName) { + $this->assertPermission(Manager::MODULE_PERMISSION_NS . $this->moduleName); + } } /**