Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function deleteTopic(TopicInterface $topic)
 {
     if (!$this->topicAcl->canDelete($topic)) {
         throw new AccessDeniedException();
     }
     $this->realManager->deleteTopic($topic);
 }
Пример #2
0
 /**
  * @param TopicInterface $topic
  *
  * @return boolean
  */
 public function canReply(TopicInterface $topic)
 {
     return $this->topicAcl->canReply($topic);
 }