summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-26 20:30:47 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-26 20:30:47 +0000
commitffbd3c0522a0b5259976586999fd3a9ff963eb6d (patch)
tree27af9abed0e6cb90fe0d7fd2035e778499e7b215 /app/models/issue.rb
parent30579e6619e8723a530e510cd85c0dfbc4c332cf (diff)
downloadredmine-ffbd3c0522a0b5259976586999fd3a9ff963eb6d.tar.gz
redmine-ffbd3c0522a0b5259976586999fd3a9ff963eb6d.zip
Makes all workflow transitions defined for all roles available to administrators (#2323).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8707 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 2b9b12b77..d20cff35d 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -503,7 +503,7 @@ class Issue < ActiveRecord::Base
# Returns an array of status that user is able to apply
def new_statuses_allowed_to(user, include_default=false)
statuses = status.find_new_statuses_allowed_to(
- user.roles_for_project(project),
+ user.admin ? Role.all : user.roles_for_project(project),
tracker,
author == user,
assigned_to_id_changed? ? assigned_to_id_was == user.id : assigned_to_id == user.id