From: Matthias Schmidt Date: Mon, 31 Jul 2017 16:36:32 +0000 (+0200) Subject: Fix tiny build for visitors check in `AbstractCommentManager` X-Git-Tag: 3.1.0_Alpha_1~111 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=43535295245cb6e459d41985bd470fff93fcd668;p=GitHub%2FWoltLab%2FWCF.git Fix tiny build for visitors check in `AbstractCommentManager` --- 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; }