summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-09 19:51:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-09 19:51:38 +0000
commit8b3ed4175d6e9d09175c1bea6f01b03079918f80 (patch)
tree7dd0c1315d674bd4cce6cf7c4623e21c196110fb /app/models/issue.rb
parent07a93c2731c5c68c0c64da3aeffc4ee1b19e1b5a (diff)
downloadredmine-8b3ed4175d6e9d09175c1bea6f01b03079918f80.tar.gz
redmine-8b3ed4175d6e9d09175c1bea6f01b03079918f80.zip
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8826 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 098113bdf..64a99e6be 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -510,7 +510,7 @@ class Issue < ActiveRecord::Base
end
# Returns an array of status that user is able to apply
- def new_statuses_allowed_to(user, include_default=false)
+ def new_statuses_allowed_to(user=User.current, include_default=false)
statuses = status.find_new_statuses_allowed_to(
user.admin ? Role.all : user.roles_for_project(project),
tracker,