]> source.dussan.org Git - redmine.git/commitdiff
Fixes r1672.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 16 Jul 2008 19:22:09 +0000 (19:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 16 Jul 2008 19:22:09 +0000 (19:22 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1673 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index 1e57f1f877cf6306f2490b148c651b440aa1cfdf..c0f31814b72c08165182a7a5249af0fce675b35a 100644 (file)
@@ -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)),