From: Matthias Schmidt Date: Sun, 28 Apr 2019 11:59:10 +0000 (+0200) Subject: Hide frontend box edit icon for menu boxes X-Git-Tag: 5.2.0_Alpha_1~112 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d60bc076503a3f09a3b916aaae2746cb57d33b25;p=GitHub%2FWoltLab%2FWCF.git Hide frontend box edit icon for menu boxes Menu boxes cannot be edited See #2575 --- diff --git a/wcfsetup/install/files/lib/data/box/Box.class.php b/wcfsetup/install/files/lib/data/box/Box.class.php index e0c397d0ec..f2e45865f4 100644 --- a/wcfsetup/install/files/lib/data/box/Box.class.php +++ b/wcfsetup/install/files/lib/data/box/Box.class.php @@ -524,7 +524,11 @@ class Box extends DatabaseObject { * @since 5.2 */ public function showEditButton() { - if (WCF::getSession()->getPermission('admin.content.cms.canManageBox') && in_array($this->position, $this->editButtonPositions)) { + if ( + WCF::getSession()->getPermission('admin.content.cms.canManageBox') + && $this->boxType !== 'menu' + && in_array($this->position, $this->editButtonPositions) + ) { return true; }