diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-03-15 16:00:39 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-03-15 16:00:39 +0000 |
commit | fba3d5d327c459486dfaddb296f0e0673df0de66 (patch) | |
tree | 15b2bf630b68cdda949977bf8f36aeae63ce0e09 /app/models/query.rb | |
parent | 5f889932b6ce810707867e3c55cf9da438fe3518 (diff) | |
download | redmine-fba3d5d327c459486dfaddb296f0e0673df0de66.tar.gz redmine-fba3d5d327c459486dfaddb296f0e0673df0de66.zip |
Adds Issue#visible_condition to build issue visibility statement.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5141 e93f8b46-1217-0410-a6f0-8f06a7374b81
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 057626885..3b1b53cc2 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -411,7 +411,7 @@ class Query < ActiveRecord::Base elsif project project_clauses << "#{Project.table_name}.id = %d" % project.id end - project_clauses << Project.allowed_to_condition(User.current, :view_issues) + project_clauses << Issue.visible_condition(User.current) project_clauses.join(' AND ') end |