]> wagnertech.de Git - timetracker.git/blobdiff - reports.php
Fixed display of Timesheet checkbox for clients.
[timetracker.git] / reports.php
index 05d7e5f26d07c4327496f49de58a2a19bc798dc9..264e5645c9e7477a8eed39a5b470d28507781ce7 100644 (file)
@@ -180,8 +180,8 @@ if ($showPaidStatus) {
 
 // Add timesheet assignment selector.
 $showTimesheet = $user->isPluginEnabled('ts') &&
-  ($user->can('view_own_timesheets') || $user->can('manage_own_timesheets') ||
-  $user->can('view_timesheets') || $user->can('manage_timesheets') || $user->can('approve_timesheets'));
+  ($user->can('view_own_timesheets') || $user->can('view_timesheets') ||
+   $user->can('view_all_timesheets') || $user->can('view_client_timesheets'));
 if ($showTimesheet) {
   $form->addInput(array('type'=>'combobox',
    'name'=>'timesheet',