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; }
/** * A user can always view their own information. * * @return bool */ public function canView() { return parent::canView() || $this->user_id == $this->_AppUI->user_id; }
public function canView() { return $this->indexer || parent::canView(); }