/** * {@inheritDoc} */ public function deleteTopic(TopicInterface $topic) { if (!$this->topicAcl->canDelete($topic)) { throw new AccessDeniedException(); } $this->realManager->deleteTopic($topic); }
/** * @param TopicInterface $topic * * @return boolean */ public function canReply(TopicInterface $topic) { return $this->topicAcl->canReply($topic); }