Skip to content

Commit

Permalink
Update exception reference
Browse files Browse the repository at this point in the history
The `GDS::SSO::ControllerMethods::PermissionDeniedException` class has
 been deprecated in favour of the new `GDS::SSO::PermissionDeniedError`
 class. Update to raise the new exception to avoid deprecation warnings.
  • Loading branch information
mtaylorgds committed May 1, 2024
1 parent 949dac7 commit f2e7804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def ensure_user_can_access_tagathon_tools!
end

def deny_access_to(subject)
raise PermissionDeniedException, "Sorry, you are not authorised to access this #{subject}."
raise PermissionDeniedError, "Sorry, you are not authorised to access this #{subject}."
end

def permission_checker
Expand Down

0 comments on commit f2e7804

Please sign in to comment.