From f1788b4747cc702bde5d33246b5d00034312e9f6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 9 Jun 2017 10:15:19 +0200 Subject: [PATCH] Hide paid subscription boxes for non-activated users --- .../dashboard/box/PaidSubscriptionsDashboardBox.class.php | 2 +- .../box/PaidSubscriptionsSidebarDashboardBox.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/dashboard/box/PaidSubscriptionsDashboardBox.class.php b/wcfsetup/install/files/lib/system/dashboard/box/PaidSubscriptionsDashboardBox.class.php index bead309e6a..3b14e42096 100644 --- a/wcfsetup/install/files/lib/system/dashboard/box/PaidSubscriptionsDashboardBox.class.php +++ b/wcfsetup/install/files/lib/system/dashboard/box/PaidSubscriptionsDashboardBox.class.php @@ -29,7 +29,7 @@ class PaidSubscriptionsDashboardBox extends AbstractContentDashboardBox { public function init(DashboardBox $box, IPage $page) { parent::init($box, $page); - if (WCF::getUser()->userID && MODULE_PAID_SUBSCRIPTION) { + if (WCF::getUser()->userID && WCF::getUser()->activationCode == 0 && MODULE_PAID_SUBSCRIPTION) { // get available subscriptions $this->subscriptions = PaidSubscriptionCacheBuilder::getInstance()->getData(); diff --git a/wcfsetup/install/files/lib/system/dashboard/box/PaidSubscriptionsSidebarDashboardBox.class.php b/wcfsetup/install/files/lib/system/dashboard/box/PaidSubscriptionsSidebarDashboardBox.class.php index b8f8f34dcc..c373e8b77b 100644 --- a/wcfsetup/install/files/lib/system/dashboard/box/PaidSubscriptionsSidebarDashboardBox.class.php +++ b/wcfsetup/install/files/lib/system/dashboard/box/PaidSubscriptionsSidebarDashboardBox.class.php @@ -29,7 +29,7 @@ class PaidSubscriptionsSidebarDashboardBox extends AbstractSidebarDashboardBox { public function init(DashboardBox $box, IPage $page) { parent::init($box, $page); - if (WCF::getUser()->userID && MODULE_PAID_SUBSCRIPTION) { + if (WCF::getUser()->userID && WCF::getUser()->activationCode == 0 && MODULE_PAID_SUBSCRIPTION) { // get available subscriptions $this->subscriptions = PaidSubscriptionCacheBuilder::getInstance()->getData(); -- 2.20.1