summaryrefslogtreecommitdiffstats
path: root/app/views/issues/_edit.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/issues/_edit.html.erb')
-rw-r--r--app/views/issues/_edit.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issues/_edit.html.erb b/app/views/issues/_edit.html.erb
index 010011fe8..07090c98b 100644
--- a/app/views/issues/_edit.html.erb
+++ b/app/views/issues/_edit.html.erb
@@ -15,7 +15,7 @@
<%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %>
</fieldset>
<% end %>
- <% if authorize_for('timelog', 'edit') %>
+ <% if User.current.allowed_to?(:log_time, @project) %>
<fieldset class="tabular"><legend><%= l(:button_log_time) %></legend>
<% fields_for :time_entry, @time_entry, { :builder => TabularFormBuilder, :lang => current_language} do |time_entry| %>
<div class="splitcontentleft">