/** * Checks if the thread can be commented. * * @param ThreadInterface $thread * * @return bool */ public function canCommentThread(ThreadInterface $thread) { return $thread->isCommentable() && (null === $this->commentAcl || $this->commentAcl->canCreate()); }