Project

General

Profile

Actions

Defect #3689

closed

Report is empty if grouped by user in timesheet

Added by Vitaly Klimov over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-07-29
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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.

Actions #1

Updated by Eric Davis over 15 years ago

  • Assignee deleted (Jean-Philippe Lang)

Is this for the timesheet plugin or the Redmine core? If the url for this page is http://yourdomain.com/timesheet, it's the timesheet plugin and should be posted to my issue tracker at https://projects.littlestreamsoftware.com/projects/redmine-timesheet.

Actions #2

Updated by Vitaly Klimov over 15 years ago

  • 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

Actions #3

Updated by Eric Davis over 15 years ago

  • 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.

Actions

Also available in: Atom PDF