diff options
author | Go MAEDA <maeda@farend.jp> | 2021-02-11 06:48:29 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-02-11 06:48:29 +0000 |
commit | f238663f2b844cb6b9d3e249071b0749ea2e4fcc (patch) | |
tree | 87257e402942ea93e6887165530700c4321ab4cf /app | |
parent | af4c60825180c732e3110489750649f0017f1dc0 (diff) | |
download | redmine-f238663f2b844cb6b9d3e249071b0749ea2e4fcc.tar.gz redmine-f238663f2b844cb6b9d3e249071b0749ea2e4fcc.zip |
Allow to use watch_by filter in the global issues list (#34700).
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@20744 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-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 039e38e32..f81f5782a 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -615,7 +615,7 @@ class Query < ActiveRecord::Base def watcher_values watcher_values = [["<< #{l(:label_me)} >>", "me"]] - if User.current.allowed_to?(:view_issue_watchers, self.project) + if User.current.allowed_to?(:view_issue_watchers, self.project, global: true) watcher_values += principals.sort_by(&:status). collect{|s| [s.name, s.id.to_s, l("status_#{User::LABEL_BY_STATUS[s.status]}")]} |