NavigationConfigForm: Automatically share a parent's entire children, #2

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-18 16:17:54 +02:00
parent 9574f80160
commit 75d003a775
1 changed files with 0 additions and 2 deletions

View File

@ -333,7 +333,6 @@ class NavigationConfigForm extends ConfigForm
} elseif ((isset($data['users']) && $data['users']) || (isset($data['groups']) && $data['groups'])) {
if ($this->getUser()->can('application/share/navigation')) {
// It is not shared yet but should be
$config->removeSection($name);
$this->secondaryConfig = $config;
$config = $this->getShareConfig();
$data['owner'] = $this->getUser()->getUsername();
@ -344,7 +343,6 @@ class NavigationConfigForm extends ConfigForm
}
} elseif (isset($data['parent']) && $data['parent'] && $this->hasBeenShared($data['parent'])) {
// Its parent is shared so should it itself
$config->removeSection($name);
$this->secondaryConfig = $config;
$config = $this->getShareConfig();
$data['owner'] = $this->getUser()->getUsername();