Skip to content

Commit

Permalink
refactor method argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed Aug 14, 2024
1 parent d8eb5b9 commit 33ffeea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module NeedsAdminTosAccepted
def tos_accepted_by_admin
return unless request.format.html?
return unless current_user
return unless user_has_any_role?(current_user)
return unless user_has_any_role?(current_user, broad_check: true)
return if current_user.admin_terms_accepted?
return if permitted_paths?

Expand Down

0 comments on commit 33ffeea

Please sign in to comment.