use wcf\data\DatabaseObjectDecorator;
use wcf\data\user\UserProfile;
use wcf\system\bbcode\BBCodeHandler;
+use wcf\system\session\SessionHandler;
use wcf\system\SingletonFactory;
use wcf\system\WCF;
}
#[\Override]
- public function canModerateObject(int $objectTypeID, int $objectID, UserProfile $user): bool
+ public function canModerateObject(int $objectTypeID, int $objectID, SessionHandler|UserProfile $user): bool
{
return (bool)$user->getPermission($this->permissionCanModerate);
}
use wcf\data\comment\Comment;
use wcf\data\comment\response\CommentResponse;
use wcf\data\user\UserProfile;
+use wcf\system\session\SessionHandler;
/**
* Default interface for comment managers.
* Returns true if the user may moderate content identified by
* object type id and object id.
*/
- public function canModerateObject(int $objectTypeID, int $objectID, UserProfile $user): bool;
+ public function canModerateObject(int $objectTypeID, int $objectID, SessionHandler|UserProfile $user): bool;
/**
* Returns the amount of comments per page.