From 43535295245cb6e459d41985bd470fff93fcd668 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 31 Jul 2017 18:36:32 +0200 Subject: [PATCH] Fix tiny build for visitors check in `AbstractCommentManager` --- .../system/comment/manager/AbstractCommentManager.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php index 7c9a3c98ca..98faf7bb45 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php @@ -66,7 +66,7 @@ abstract class AbstractCommentManager extends SingletonFactory implements IComme * @inheritDoc */ public function canAdd($objectID) { - if (!VISITOR_USE_TINY_BUILD && !WCF::getUser()->userID) { + if (VISITOR_USE_TINY_BUILD && !WCF::getUser()->userID) { return false; } @@ -81,7 +81,7 @@ abstract class AbstractCommentManager extends SingletonFactory implements IComme * @inheritDoc */ public function canAddWithoutApproval($objectID) { - if (!VISITOR_USE_TINY_BUILD && !WCF::getUser()->userID) { + if (VISITOR_USE_TINY_BUILD && !WCF::getUser()->userID) { return false; } -- 2.20.1