From 8c031d03ae38206f0bfee1d0d392429739e1d095 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 9 Jun 2017 10:18:04 +0200 Subject: [PATCH] Hide paid subscription boxes for non-activated users --- .../lib/system/box/PaidSubscriptionsBoxController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/box/PaidSubscriptionsBoxController.class.php b/wcfsetup/install/files/lib/system/box/PaidSubscriptionsBoxController.class.php index 214379cc92..9cb9d6ea03 100644 --- a/wcfsetup/install/files/lib/system/box/PaidSubscriptionsBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/PaidSubscriptionsBoxController.class.php @@ -38,7 +38,7 @@ class PaidSubscriptionsBoxController extends AbstractBoxController { * @inheritDoc */ protected function loadContent() { - if (WCF::getUser()->userID && MODULE_PAID_SUBSCRIPTION) { + if (WCF::getUser()->userID && WCF::getUser()->activationCode == 0 && MODULE_PAID_SUBSCRIPTION) { // get available subscriptions $subscriptions = PaidSubscriptionCacheBuilder::getInstance()->getData(); -- 2.20.1