Exemplo n.º 1
0
 /**
  * return true if viewer is an admin or a guest.
  *
  * @return bool
  */
 public function canAdd()
 {
     if ($this->_viewer->admin()) {
         return true;
     }
     if ($this->_viewer->guest() && $this->isRegistrationOpen()) {
         return true;
     }
     return false;
 }