summaryrefslogtreecommitdiffstats
path: root/app/controllers/workflows_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-13 14:47:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-13 14:47:16 +0000
commitc886ffe200a4ba3d46c1c3464ecd69a01e2a21ab (patch)
treea33ad507f88f9d084956872ab990d681bafe6c2a /app/controllers/workflows_controller.rb
parent453803c68f24f1815ba001a70807dd65f909545c (diff)
downloadredmine-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/controllers/workflows_controller.rb')
-rw-r--r--app/controllers/workflows_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/workflows_controller.rb b/app/controllers/workflows_controller.rb
index 28b0f2242..d00ee03bc 100644
--- a/app/controllers/workflows_controller.rb
+++ b/app/controllers/workflows_controller.rb
@@ -72,7 +72,7 @@ class WorkflowsController < ApplicationController
end
def copy
- @roles = Role.sorted
+ @roles = Role.sorted.select(&:consider_workflow?)
@trackers = Tracker.sorted
if params[:source_tracker_id].blank? || params[:source_tracker_id] == 'any'