From d6306bd881fbf174f4c57285220a03c8595bb100 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Thu, 21 Mar 2024 10:34:04 +0100 Subject: [PATCH] Use new function `canModerateObject` to check if the user has permission to this moderation queue item --- .../AbstractCommentCommentModerationQueueHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php index edd4f3aadb..c09110b346 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php @@ -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) -- 2.20.1