Use new function `canModerateObject` to check if the user has permission to this...
authorCyperghost <olaf_schmitz_1@t-online.de>
Thu, 21 Mar 2024 09:34:04 +0000 (10:34 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Thu, 21 Mar 2024 09:34:04 +0000 (10:34 +0100)
wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php

index edd4f3aadb36b56e60b469733feb8a354131018d..c09110b346234177909cefdeb77cd6d2b59f7372 100644 (file)
@@ -180,7 +180,7 @@ class AbstractCommentCommentModerationQueueHandler extends AbstractModerationQue
             return false;
         }
 
-        return $this->getCommentManager($comment)->canModerate(
+        return $this->getCommentManager($comment)->canModerateObject(
             $comment->objectTypeID,
             $comment->objectID,
             UserProfileRuntimeCache::getInstance()->getObject($userID)