From: joshuaruesweg Date: Wed, 30 Jul 2014 15:17:52 +0000 (+0200) Subject: make User-Rank*-Pages unavailable if the module is disabled X-Git-Tag: 2.1.0_Alpha_1~353^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f5f0b11c165e5e301d6cb3adc2d93ad8d8528ecb;p=GitHub%2FWoltLab%2FWCF.git make User-Rank*-Pages unavailable if the module is disabled --- diff --git a/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php index dfd080fb93..7b32807dd7 100644 --- a/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php @@ -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 diff --git a/wcfsetup/install/files/lib/acp/page/UserRankListPage.class.php b/wcfsetup/install/files/lib/acp/page/UserRankListPage.class.php index b8c3b3f178..c6808f4701 100644 --- a/wcfsetup/install/files/lib/acp/page/UserRankListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/UserRankListPage.class.php @@ -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 */