]> wagnertech.de Git - timetracker.git/blobdiff - reports.php
Cleaning up no longer needed access rights.
[timetracker.git] / reports.php
index fc77e09109e5bd609e4ab2f95faab58a9a5ffd25..fb74e16cc5c812fd680182f5de12adc6532a01c3 100644 (file)
@@ -192,8 +192,7 @@ if ($showApproved) {
 }
 
 // Add timesheet assignment selector.
-$showTimesheetDropdown = $user->isPluginEnabled('ts') &&
-  ($user->can('view_own_timesheets') || $user->can('view_timesheets') || $user->can('view_all_timesheets'));
+$showTimesheetDropdown = $user->isPluginEnabled('ts');
 if ($showTimesheetDropdown) {
   $form->addInput(array('type'=>'combobox',
    'name'=>'timesheet',
@@ -206,8 +205,7 @@ if ($showTimesheetDropdown) {
    'empty'=>array(''=>$i18n->get('dropdown.all'))
   ));
 }
-$showTimesheetCheckbox = $user->isPluginEnabled('ts') &&
-  ($user->can('view_own_timesheets') || $user->can('view_timesheets') || $user->can('view_all_timesheets'));
+$showTimesheetCheckbox = $user->isPluginEnabled('ts');
 
 // Add user table.
 $showUsers = $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient();