From 1641e9afbe202a453c9d2edefa1cdcd3730a4555 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 26 Dec 2014 10:23:36 +0100 Subject: [PATCH] Add missing paid subscription module checks --- .../files/lib/acp/form/PaidSubscriptionAddForm.class.php | 5 +++++ .../files/lib/acp/form/PaidSubscriptionUserAddForm.class.php | 5 +++++ .../files/lib/acp/page/PaidSubscriptionListPage.class.php | 5 +++++ .../page/PaidSubscriptionTransactionLogListPage.class.php | 5 +++++ .../acp/page/PaidSubscriptionTransactionLogPage.class.php | 5 +++++ .../lib/acp/page/PaidSubscriptionUserListPage.class.php | 5 +++++ 6 files changed, 30 insertions(+) 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 */ -- 2.20.1