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
This commit is contained in:
Jean-Philippe Lang
2014-12-13 14:47:16 +00:00
parent 453803c68f
commit c886ffe200
5 changed files with 5 additions and 5 deletions

View File

@@ -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|