diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-13 14:47:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-13 14:47:16 +0000 |
commit | c886ffe200a4ba3d46c1c3464ecd69a01e2a21ab (patch) | |
tree | a33ad507f88f9d084956872ab990d681bafe6c2a /app/models/workflow_rule.rb | |
parent | 453803c68f24f1815ba001a70807dd65f909545c (diff) | |
download | redmine-c886ffe200a4ba3d46c1c3464ecd69a01e2a21ab.tar.gz redmine-c886ffe200a4ba3d46c1c3464ecd69a01e2a21ab.zip |
Don't show roles without issue add/edit permission in workflow setup (#15988).
git-svn-id: http://svn.redmine.org/redmine/trunk@13748 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/workflow_rule.rb')
-rw-r--r-- | app/models/workflow_rule.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/workflow_rule.rb b/app/models/workflow_rule.rb index 0cd837d7c..bd53fac54 100644 --- a/app/models/workflow_rule.rb +++ b/app/models/workflow_rule.rb @@ -36,7 +36,7 @@ class WorkflowRule < ActiveRecord::Base target_roles = [target_roles].flatten.compact target_trackers = Tracker.sorted.to_a if target_trackers.empty? - target_roles = Role.all if target_roles.empty? + target_roles = Role.all.select(&:consider_workflow?) if target_roles.empty? target_trackers.each do |target_tracker| target_roles.each do |target_role| |