Fix editing main menu in ACP
authorMatthias Schmidt <gravatronics@live.com>
Thu, 30 Nov 2017 18:22:39 +0000 (19:22 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 30 Nov 2017 18:22:39 +0000 (19:22 +0100)
Close #2491

wcfsetup/install/files/lib/acp/form/MenuEditForm.class.php

index 733c8e7a83e642d7c258d75792ba0e7f0c012de8..5ec14adf6377bc19ce492994dcf1072031be9a8b 100644 (file)
@@ -99,7 +99,9 @@ class MenuEditForm extends MenuAddForm {
                        $boxAction->executeAction();
                }
                
-               SimpleAclHandler::getInstance()->setValues('com.woltlab.wcf.box', $this->menu->getBox()->boxID, $this->aclValues);
+               if ($this->menu->identifier !== 'com.woltlab.wcf.MainMenu') {
+                       SimpleAclHandler::getInstance()->setValues('com.woltlab.wcf.box', $this->menu->getBox()->boxID, $this->aclValues);
+               }
                
                $this->saved();