summaryrefslogtreecommitdiffstats
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-30 07:40:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-30 07:40:57 +0000
commit6659aad3ef651b714a66d648cef2f25e3fff8516 (patch)
tree4f820edcddb221573b29f91a05786eabff94dd7a /app/controllers/projects_controller.rb
parent5e28f0b1b6aaabb327d458213f14cf6e5b90ae8a (diff)
downloadredmine-6659aad3ef651b714a66d648cef2f25e3fff8516.tar.gz
redmine-6659aad3ef651b714a66d648cef2f25e3fff8516.zip
Adds a role setting that viewing all or own time entries (#8929).
git-svn-id: http://svn.redmine.org/redmine/trunk@14275 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 38636a054..71007f383 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -143,7 +143,7 @@ class ProjectsController < ApplicationController
@open_issues_by_tracker = Issue.visible.open.where(cond).group(:tracker).count
@total_issues_by_tracker = Issue.visible.where(cond).group(:tracker).count
- if User.current.allowed_to?(:view_time_entries, @project)
+ if User.current.allowed_to_view_all_time_entries?(@project)
@total_hours = TimeEntry.visible.where(cond).sum(:hours).to_f
end