From: Matthias Schmidt Date: Sun, 20 Jan 2019 15:41:30 +0000 (+0100) Subject: Add permission check for notifiction test page X-Git-Tag: 3.1.8~20 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=652e5e4714a6dc595c833ff5e7d3c1fcc21e8477;p=GitHub%2FWoltLab%2FWCF.git Add permission check for notifiction test page The same permission as for the other devtool pages is used. --- diff --git a/com.woltlab.wcf/acpMenu.xml b/com.woltlab.wcf/acpMenu.xml index 027a420f03..d9278aae04 100644 --- a/com.woltlab.wcf/acpMenu.xml +++ b/com.woltlab.wcf/acpMenu.xml @@ -119,6 +119,7 @@ wcf.acp.menu.link.devtools wcf\acp\page\DevtoolsNotificationTestPage + admin.configuration.package.canInstallPackage diff --git a/wcfsetup/install/files/lib/acp/page/DevtoolsNotificationTestPage.class.php b/wcfsetup/install/files/lib/acp/page/DevtoolsNotificationTestPage.class.php index 1098f74567..8f75de6751 100644 --- a/wcfsetup/install/files/lib/acp/page/DevtoolsNotificationTestPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/DevtoolsNotificationTestPage.class.php @@ -27,6 +27,11 @@ class DevtoolsNotificationTestPage extends AbstractPage { */ protected $events = []; + /** + * @inheritDoc + */ + public $neededPermissions = ['admin.configuration.package.canInstallPackage']; + /** * @inheritDoc */