class TriagePolicy
Public Instance Methods
Source
# File app/policies/triage_policy.rb, line 6 def create? team.has_point_of_care_access? && (user.is_nurse? || user.is_prescriber?) end
Source
# File app/policies/triage_policy.rb, line 4 def index? = team.has_point_of_care_access? def create? team.has_point_of_care_access? && (user.is_nurse? || user.is_prescriber?) end def show? = team.has_point_of_care_access? def update? team.has_point_of_care_access? && (user.is_nurse? || user.is_prescriber?) end class Scope < ApplicationPolicy::Scope def resolve = scope.where(team: [nil, team])
Source
# File app/policies/triage_policy.rb, line 10 def show? = team.has_point_of_care_access? def update? team.has_point_of_care_access? && (user.is_nurse? || user.is_prescriber?) end class Scope < ApplicationPolicy::Scope def resolve = scope.where(team: [nil, team]) end
Source
# File app/policies/triage_policy.rb, line 12 def update? team.has_point_of_care_access? && (user.is_nurse? || user.is_prescriber?) end