diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-03-16 17:29:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-03-16 17:29:30 +0000 |
commit | 0786b9ef99b0797f06a72201b1581d7384efc624 (patch) | |
tree | fd4abfc5b9476450092ff90a378e3f443b7b1505 /app/views/projects/show.rhtml | |
parent | 7ffdd961e9f92a2f1eb86f1d38ce056e1507e2b3 (diff) | |
download | redmine-0786b9ef99b0797f06a72201b1581d7384efc624.tar.gz redmine-0786b9ef99b0797f06a72201b1581d7384efc624.zip |
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
Diffstat (limited to 'app/views/projects/show.rhtml')
-rw-r--r-- | app/views/projects/show.rhtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/show.rhtml b/app/views/projects/show.rhtml index 414358aca..7cc554c84 100644 --- a/app/views/projects/show.rhtml +++ b/app/views/projects/show.rhtml @@ -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}) %> | |