コード例 #1
0
ファイル: AclTopicManager.php プロジェクト: qushe-demon/ghost
 /**
  * {@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);
 }