From c886ffe200a4ba3d46c1c3464ecd69a01e2a21ab Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 13 Dec 2014 14:47:16 +0000 Subject: 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 --- app/models/workflow_transition.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/workflow_transition.rb') diff --git a/app/models/workflow_transition.rb b/app/models/workflow_transition.rb index e88769aa7..99c399644 100644 --- a/app/models/workflow_transition.rb +++ b/app/models/workflow_transition.rb @@ -21,7 +21,7 @@ class WorkflowTransition < WorkflowRule # Returns workflow transitions count by tracker and role def self.count_by_tracker_and_role counts = connection.select_all("SELECT role_id, tracker_id, count(id) AS c FROM #{table_name} WHERE type = 'WorkflowTransition' GROUP BY role_id, tracker_id") - roles = Role.sorted + roles = Role.sorted.to_a.select(&:consider_workflow?) trackers = Tracker.sorted result = [] trackers.each do |tracker| -- cgit v1.2.3