Add permission check for notifiction test page
authorMatthias Schmidt <gravatronics@live.com>
Sun, 20 Jan 2019 15:41:30 +0000 (16:41 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 20 Jan 2019 15:41:30 +0000 (16:41 +0100)
The same permission as for the other devtool pages is used.

com.woltlab.wcf/acpMenu.xml
wcfsetup/install/files/lib/acp/page/DevtoolsNotificationTestPage.class.php

index 027a420f036381cdbb06f3c0e914a72261d48c3b..d9278aae04cf312641537b7fd68ca2ed9d24e7c7 100644 (file)
                        <acpmenuitem name="wcf.acp.menu.link.devtools.notificationTest">
                                <parent>wcf.acp.menu.link.devtools</parent>
                                <controller>wcf\acp\page\DevtoolsNotificationTestPage</controller>
+                               <permissions>admin.configuration.package.canInstallPackage</permissions>
                        </acpmenuitem>
                        <!-- /devtools -->
                
index 1098f745677a3162e020b87179366eefd587ec7a..8f75de6751bdc9613d4dd5648b09e42ba8dbd45b 100644 (file)
@@ -27,6 +27,11 @@ class DevtoolsNotificationTestPage extends AbstractPage {
         */
        protected $events = [];
        
+       /**
+        * @inheritDoc
+        */
+       public $neededPermissions = ['admin.configuration.package.canInstallPackage'];
+       
        /**
         * @inheritDoc
         */