Skip to content

Commit

Permalink
exclude non project members from user filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ulferts authored and oliverguenther committed Dec 2, 2024
1 parent 15ac1f8 commit a0f143d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/reporting/app/models/cost_query/filter/user_id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def replace_me_value(value)
def self.available_values(*)
# All users which are members in projects the user can see.
# Excludes the anonymous user
users = User.visible
users = User.in_visible_project
.human
.ordered_by_name
.select(User::USER_FORMATS_STRUCTURE[Setting.user_format].map(&:to_s) << :id)
Expand Down

0 comments on commit a0f143d

Please sign in to comment.