Exemple #1
0
 public function canShowBoard(Board $board, Forum $forum = null)
 {
     if ($board->getCategory()) {
         if (!$this->canShowCategory($board->getCategory(), $forum)) {
             return false;
         }
     }
     if (!$board->isAuthorisedToRead($this->securityContext)) {
         return false;
     }
     return true;
 }