Replaces TimeEntry.visible_by with a visible scope.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5149 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
</div>
|
||||
|
||||
<% content_for :sidebar do %>
|
||||
<% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
|
||||
<% if @total_hours.present? %>
|
||||
<h3><%= l(:label_spent_time) %></h3>
|
||||
<p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
|
||||
<p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> |
|
||||
|
||||
Reference in New Issue
Block a user