Ejemplo n.º 1
0
 /**
  * @param KunenaForumCategory $category
  * @param KunenaForumTopic    $topic
  *
  * @return bool
  */
 protected function canPost(KunenaForumCategory $category, KunenaForumTopic $topic)
 {
     if ($topic->exists()) {
         return $topic->authorise('reply');
     } else {
         return $category->authorise('topic.reply');
     }
 }