* @see \wcf\data\like\ILikeObjectTypeProvider::checkPermissions()
*/
public function checkPermissions(ILikeObject $comment) {
+ if (!$comment->commentID) return false;
+
$objectType = CommentHandler::getInstance()->getObjectType($comment->objectTypeID);
return CommentHandler::getInstance()->getCommentManager($objectType->objectType)->isAccessible($comment->objectID);
}
* @see \wcf\data\like\ILikeObjectTypeProvider::checkPermissions()
*/
public function checkPermissions(ILikeObject $response) {
+ if (!$response->responseID) return false;
$comment = new Comment($response->commentID);
if (!$comment->commentID) {
return false;