/** * @see \wcf\system\comment\manager\ICommentManager::canDeleteResponse() */ public function canDeleteResponse(CommentResponse $response) { if ($response->getComment()->objectID == WCF::getUser()->userID && WCF::getSession()->getPermission('user.profileComment.canDeleteCommentInOwnProfile')) { return true; } return parent::canDeleteResponse($response); }