예제 #1
0
 /**
  * Returns if the client has access to this form.
  *
  * @return boolean
  */
 public function authorize()
 {
     // Ban check.
     $ban = Ban::getBan($this->ip(), $this->board->board_uri);
     if ($ban) {
         $this->ban = $ban;
         return false;
     }
     return $this->board->canPost($this->user, $this->thread);
 }