From: Matthias Schmidt Date: Fri, 26 Dec 2014 09:23:36 +0000 (+0100) Subject: Add missing paid subscription module checks X-Git-Tag: 2.1.0_Beta_3~77 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1641e9afbe202a453c9d2edefa1cdcd3730a4555;p=GitHub%2FWoltLab%2FWCF.git Add missing paid subscription module checks --- diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php index 4d0cceb171..fafff93293 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php @@ -28,6 +28,11 @@ class PaidSubscriptionAddForm extends AbstractForm { */ public $activeMenuItem = 'wcf.acp.menu.link.paidSubscription'; + /** + * @see \wcf\page\AbstractPage::$neededModules + */ + public $neededModules = array('MODULE_PAID_SUBSCRIPTION'); + /** * @see \wcf\page\AbstractPage::$neededPermissions */ diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php index a83c4ea05f..c40a4d2e46 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php @@ -27,6 +27,11 @@ class PaidSubscriptionUserAddForm extends AbstractForm { */ public $activeMenuItem = 'wcf.acp.menu.link.paidSubscription'; + /** + * @see \wcf\page\AbstractPage::$neededModules + */ + public $neededModules = array('MODULE_PAID_SUBSCRIPTION'); + /** * @see \wcf\page\AbstractPage::$neededPermissions */ diff --git a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionListPage.class.php b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionListPage.class.php index 5df9804b5f..3591d1cfce 100644 --- a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionListPage.class.php @@ -18,6 +18,11 @@ class PaidSubscriptionListPage extends SortablePage { */ public $activeMenuItem = 'wcf.acp.menu.link.paidSubscription.list'; + /** + * @see \wcf\page\AbstractPage::$neededModules + */ + public $neededModules = array('MODULE_PAID_SUBSCRIPTION'); + /** * @see \wcf\page\AbstractPage::$neededPermissions */ diff --git a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogListPage.class.php b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogListPage.class.php index 06450d3873..0d55ef54dd 100644 --- a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogListPage.class.php @@ -21,6 +21,11 @@ class PaidSubscriptionTransactionLogListPage extends SortablePage { */ public $activeMenuItem = 'wcf.acp.menu.link.paidSubscription.transactionLog.list'; + /** + * @see \wcf\page\AbstractPage::$neededModules + */ + public $neededModules = array('MODULE_PAID_SUBSCRIPTION'); + /** * @see \wcf\page\AbstractPage::$neededPermissions */ diff --git a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogPage.class.php b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogPage.class.php index 892647d26b..585e6f1f2e 100644 --- a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogPage.class.php @@ -21,6 +21,11 @@ class PaidSubscriptionTransactionLogPage extends AbstractPage { */ public $activeMenuItem = 'wcf.acp.menu.link.paidSubscription'; + /** + * @see \wcf\page\AbstractPage::$neededModules + */ + public $neededModules = array('MODULE_PAID_SUBSCRIPTION'); + /** * @see \wcf\page\AbstractPage::$neededPermissions */ diff --git a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionUserListPage.class.php b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionUserListPage.class.php index 1eed34c952..e064a19134 100644 --- a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionUserListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionUserListPage.class.php @@ -18,6 +18,11 @@ class PaidSubscriptionUserListPage extends SortablePage { */ public $activeMenuItem = 'wcf.acp.menu.link.paidSubscription.user.list'; + /** + * @see \wcf\page\AbstractPage::$neededModules + */ + public $neededModules = array('MODULE_PAID_SUBSCRIPTION'); + /** * @see \wcf\page\AbstractPage::$neededPermissions */