Skip to content

Commit

Permalink
Move you cannot perform this action text to locales
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie authored and JamieCleare2525 committed Jan 25, 2024
1 parent f356675 commit 1380d43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/claims/support/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Claims::Support::ApplicationController < ApplicationController
def authorize_user!
return if current_user.support_user?

redirect_to claims_root_path, alert: "You cannot perform this action"
redirect_to claims_root_path, alert: t("you_cannot_perform_this_action")
end

def support_controller?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Placements::Support::ApplicationController < ApplicationController
def authorize_user!
return if current_user.support_user?

redirect_to placements_root_path, alert: "You cannot perform this action"
redirect_to placements_root_path, alert: t("you_cannot_perform_this_action")
end

def support_controller?
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ en:
no_results: There are no results for '%{for}'.
no_results_with_filter_and_search: There are no results for '%{for}' and the selected filter.
no_results_with_filter: There are no results for the selected filter.
you_cannot_perform_this_action: You cannot perform this action
date:
formats:
long: "%e %B %Y"
Expand Down

0 comments on commit 1380d43

Please sign in to comment.