diff --git a/app/models/cost_query/filter/user_id.rb b/app/models/cost_query/filter/user_id.rb index 1af9f81e4b..9bd37511c0 100644 --- a/app/models/cost_query/filter/user_id.rb +++ b/app/models/cost_query/filter/user_id.rb @@ -2,6 +2,8 @@ class CostQuery::Filter::UserId < CostQuery::Filter::Base label :field_user def self.available_values - User.all.map { |u| [u.name, u.id] } + values = User.all.map { |u| [u.name, u.id] } + values.unshift ["<< #{l(:label_me)} >>", User.current.id.to_s] if User.current.logged? + values end end