X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/14a6ab5e563acb66d090c6c291b5d51b1a31fae7..840056890d9b574fcc62fdf386db346f133baa91:/reports.php diff --git a/reports.php b/reports.php index fc77e091..fb74e16c 100644 --- a/reports.php +++ b/reports.php @@ -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();