From: Jean-Philippe Lang Date: Wed, 16 Jul 2008 19:22:09 +0000 (+0000) Subject: Fixes r1672. X-Git-Tag: 0.8.0-RC1~346 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aef25a5e329f0fa5a36ecc0253e0eb39e3b2e2ee;p=redmine.git Fixes r1672. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1673 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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)),