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