Skip to content

Commit

Permalink
add country filter to user administration
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Jun 18, 2024
1 parent bedff06 commit 3925a2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/admin/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
responsible_for_country_ids: [],
user_permission_attributes: [:user_role]

filter :country, as: :select, collection: -> { Country.joins(:users).by_name_asc }
filter :operator
filter :observer
filter :user_permission_user_role_eq,
Expand Down

0 comments on commit 3925a2e

Please sign in to comment.