summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-16 19:22:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-16 19:22:09 +0000
commitaef25a5e329f0fa5a36ecc0253e0eb39e3b2e2ee (patch)
tree53c5db6ce21d25d95b4f4d1f073f0f3bcb9516a9 /app
parent83385cbca8a26b43ecd865b261ec0621046aacc9 (diff)
downloadredmine-aef25a5e329f0fa5a36ecc0253e0eb39e3b2e2ee.tar.gz
redmine-aef25a5e329f0fa5a36ecc0253e0eb39e3b2e2ee.zip
Fixes r1672.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1673 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/issues_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 1e57f1f87..c0f31814b 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -333,6 +333,7 @@ class IssuesController < ApplicationController
@project = projects.first if projects.size == 1
@can = {:edit => (@project && User.current.allowed_to?(:edit_issues, @project)),
+ :log_time => (@project && User.current.allowed_to?(:log_time, @project)),
:update => (@issue && (User.current.allowed_to?(:edit_issues, @project) || (User.current.allowed_to?(:change_status, @project) && !@allowed_statuses.empty?))),
:move => (@project && User.current.allowed_to?(:move_issues, @project)),
:copy => (@issue && @project.trackers.include?(@issue.tracker) && User.current.allowed_to?(:add_issues, @project)),