Exemplo n.º 1
0
 public function canView()
 {
     if (!parent::canView()) {
         return false;
     }
     // @todo This should eventually check to see if the user is *any* of the invitees instead of just the owner
     if ($this->event_private && $this->event_owner != $this->_AppUI->user_id) {
         return false;
     }
     $perms = $this->_AppUI->acl();
     if ($this->event_project && !$perms->checkModuleItem('projects', 'view', $event->event_project)) {
         return false;
     }
     return true;
 }
Exemplo n.º 2
0
 /**
  * A user can always view their own information.
  *
  * @return bool
  */
 public function canView()
 {
     return parent::canView() || $this->user_id == $this->_AppUI->user_id;
 }
Exemplo n.º 3
0
 public function canView()
 {
     return $this->indexer || parent::canView();
 }