From 652e5e4714a6dc595c833ff5e7d3c1fcc21e8477 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 20 Jan 2019 16:41:30 +0100 Subject: [PATCH] Add permission check for notifiction test page The same permission as for the other devtool pages is used. --- com.woltlab.wcf/acpMenu.xml | 1 + .../lib/acp/page/DevtoolsNotificationTestPage.class.php | 5 +++++ 2 files changed, 6 insertions(+) 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 */ -- 2.20.1