mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Require config/modules permission for listing and showing modules
refs #9644
This commit is contained in:
parent
8d7f32cac1
commit
e1357c1386
@ -93,6 +93,7 @@ class ConfigController extends Controller
|
||||
*/
|
||||
public function modulesAction()
|
||||
{
|
||||
$this->assertPermission('config/modules');
|
||||
// Overwrite tabs created in init
|
||||
// @TODO(el): This seems not natural to me. Module configuration should have its own controller.
|
||||
$this->view->tabs = Widget::create('tabs')
|
||||
@ -118,6 +119,7 @@ class ConfigController extends Controller
|
||||
|
||||
public function moduleAction()
|
||||
{
|
||||
$this->assertPermission('config/modules');
|
||||
$app = Icinga::app();
|
||||
$manager = $app->getModuleManager();
|
||||
$name = $this->getParam('name');
|
||||
|
Loading…
x
Reference in New Issue
Block a user