mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
NavigationController: Require parameter type and owner in action unshare
refs #10246
This commit is contained in:
parent
b4bcfa4e08
commit
8d0e57c95e
@ -364,9 +364,13 @@ class NavigationController extends Controller
|
||||
$this->assertPermission('config/application/navigation');
|
||||
$this->assertHttpMethod('POST');
|
||||
|
||||
$itemType = $this->params->getRequired('type');
|
||||
$itemOwner = $this->params->getRequired('owner');
|
||||
|
||||
$navigationConfigForm = new NavigationConfigForm();
|
||||
$navigationConfigForm->setUser($this->Auth()->getUser());
|
||||
$navigationConfigForm->setShareConfig(Config::app('navigation'));
|
||||
$navigationConfigForm->setShareConfig(Config::fromIni($this->getConfigPath($itemType)));
|
||||
$navigationConfigForm->setUserConfig(Config::fromIni($this->getConfigPath($itemType, $itemOwner)));
|
||||
|
||||
$form = new Form(array(
|
||||
'onSuccess' => function ($form) use ($navigationConfigForm) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user