diff options
Diffstat (limited to 'app/models/query.rb')
-rw-r--r-- | app/models/query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index 4e72ae5c7..e2e1326e2 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -153,7 +153,7 @@ class Query < ActiveRecord::Base ] cattr_reader :available_columns - named_scope :visible, lambda {|*args| + scope :visible, lambda {|*args| user = args.shift || User.current base = Project.allowed_to_condition(user, :view_issues, *args) user_id = user.logged? ? user.id : 0 |