Skip to content

Commit

Permalink
name change
Browse files Browse the repository at this point in the history
  • Loading branch information
aherzberg committed Sep 18, 2024
1 parent 3ab7b03 commit 483a04e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def appointments_cache_interface
def authorize
raise_access_denied unless current_user.authorize(:vaos, :access?)
raise_access_denied_no_icn if current_user.icn.blank?
raise_access_denied_no_facilities unless current_user.authorize(:vaos, :facilities?)
raise_access_denied_no_facilities unless current_user.authorize(:vaos, :facilities_access?)
end

def raise_access_denied
Expand Down
2 changes: 1 addition & 1 deletion modules/vaos/app/policies/vaos_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def access?
Flipper.enabled?('va_online_scheduling', user) && user.loa3?
end

def facilities?
def facilities_access?
user.va_patient?
end
end

0 comments on commit 483a04e

Please sign in to comment.