make User-Rank*-Pages unavailable if the module is disabled
authorjoshuaruesweg <josh@joshsboard.de>
Wed, 30 Jul 2014 15:17:52 +0000 (17:17 +0200)
committerjoshuaruesweg <josh@joshsboard.de>
Wed, 30 Jul 2014 15:17:52 +0000 (17:17 +0200)
wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php
wcfsetup/install/files/lib/acp/page/UserRankListPage.class.php

index dfd080fb93f854db0738b90dc9f08d1ac50faa79..7b32807dd7a2add79458ab20695dbf2295cbe7bf 100644 (file)
@@ -31,6 +31,11 @@ class UserRankAddForm extends AbstractForm {
         */
        public $neededPermissions = array('admin.user.rank.canManageRank');
        
+       /**
+        * @see wcf\page\AbstractPage::$neededModules
+        */
+       public $neededModules = array('MODULE_USER_RANK');
+       
        /**
         * rank group id
         * @var integer
index b8c3b3f178bd7ef88d1f01ef46803bbb0f1ae084..c6808f4701e56cd9a1067fa8076011fceb423e5b 100644 (file)
@@ -23,6 +23,11 @@ class UserRankListPage extends SortablePage {
         */
        public $neededPermissions = array('admin.user.rank.canManageRank');
        
+       /**
+        * @see wcf\page\AbstractPage::$neededModules
+        */
+       public $neededModules = array('MODULE_USER_RANK');
+       
        /**
         * @see \wcf\page\MultipleLinkPage::$objectListClassName
         */