Skip to content

Commit

Permalink
AO3-6565 Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
weeklies committed Jan 16, 2025
1 parent 104276c commit 97dbdb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/admin_users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ def creations

def search_params
allowed_params = if policy(User).can_view_past?
%i[name email role_id user_id inactive page search_past]
%i[name email role_id user_id inactive page commit search_past]
else
%i[name email role_id user_id inactive page]
%i[name email role_id user_id inactive page commit]
end

params.permit(*allowed_params)
Expand Down

0 comments on commit 97dbdb7

Please sign in to comment.