From: Cyperghost Date: Thu, 21 Mar 2024 09:34:04 +0000 (+0100) Subject: Use new function `canModerateObject` to check if the user has permission to this... X-Git-Tag: 6.1.0_Alpha_1~142^2~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6306bd881fbf174f4c57285220a03c8595bb100;p=GitHub%2FWoltLab%2FWCF.git Use new function `canModerateObject` to check if the user has permission to this moderation queue item --- 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)