mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
NavigationConfigForm: Automatically share a parent's entire children, #2
refs #5600
This commit is contained in:
parent
9574f80160
commit
75d003a775
@ -333,7 +333,6 @@ class NavigationConfigForm extends ConfigForm
|
|||||||
} elseif ((isset($data['users']) && $data['users']) || (isset($data['groups']) && $data['groups'])) {
|
} elseif ((isset($data['users']) && $data['users']) || (isset($data['groups']) && $data['groups'])) {
|
||||||
if ($this->getUser()->can('application/share/navigation')) {
|
if ($this->getUser()->can('application/share/navigation')) {
|
||||||
// It is not shared yet but should be
|
// It is not shared yet but should be
|
||||||
$config->removeSection($name);
|
|
||||||
$this->secondaryConfig = $config;
|
$this->secondaryConfig = $config;
|
||||||
$config = $this->getShareConfig();
|
$config = $this->getShareConfig();
|
||||||
$data['owner'] = $this->getUser()->getUsername();
|
$data['owner'] = $this->getUser()->getUsername();
|
||||||
@ -344,7 +343,6 @@ class NavigationConfigForm extends ConfigForm
|
|||||||
}
|
}
|
||||||
} elseif (isset($data['parent']) && $data['parent'] && $this->hasBeenShared($data['parent'])) {
|
} elseif (isset($data['parent']) && $data['parent'] && $this->hasBeenShared($data['parent'])) {
|
||||||
// Its parent is shared so should it itself
|
// Its parent is shared so should it itself
|
||||||
$config->removeSection($name);
|
|
||||||
$this->secondaryConfig = $config;
|
$this->secondaryConfig = $config;
|
||||||
$config = $this->getShareConfig();
|
$config = $this->getShareConfig();
|
||||||
$data['owner'] = $this->getUser()->getUsername();
|
$data['owner'] = $this->getUser()->getUsername();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user