Defect #3689
closed
Report is empty if grouped by user in timesheet
Added by Vitaly Klimov over 16 years ago.
Updated over 16 years ago.
Description
While trying to display time report for all users grouped by user i received report only for current user, although all permissions were in place. Report looks correct if grouped by issue or by project with all user displayed. This bug does not occur for admin as well - report sorted by users displayed for admin account without any problems.
- Assignee deleted (
Jean-Philippe Lang)
- Status changed from New to Resolved
Yep, you were right - i was talking about timesheet plugin. Anyway i have found the solution to this problem - you have to add following two lines after line 217 to allow users with see_project_timesheets priveleges see other users time entries:
elsif User.current.allowed_to?(:see_project_timesheets, nil, :global => true)
logs = time_entries_for_user(user_id)
it will fix this bug
- Category deleted (
Time tracking)
- Status changed from Resolved to Closed
- Affected version (unused) deleted (
devel)
- Resolution set to Invalid
Thank you, I'll see about fixing that in the plugin.
Also available in: Atom
PDF