Fix tiny build for visitors check in `AbstractCommentManager`
authorMatthias Schmidt <gravatronics@live.com>
Mon, 31 Jul 2017 16:36:32 +0000 (18:36 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 4 Aug 2017 17:57:24 +0000 (19:57 +0200)
wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php

index 7c9a3c98caa08bfce23b5c84a2989718e7ab9b65..98faf7bb45800d4df51afb3383e17480295e775a 100644 (file)
@@ -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;
                }