/** * Determines if a user can view this report in any context. * This does not determine if a report is useful in a management view. * * @param PermissionUser $user * @return boolean */ public function canView(PermissionUser $user) { if (is_null($this->board_uri) && $user->canViewReportsGlobally()) { return true; } if (!is_null($this->board_uri) && $user->canViewReports($this->board_uri)) { return true; } return false; }