X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=reports.php;h=fb74e16cc5c812fd680182f5de12adc6532a01c3;hb=840056890d9b574fcc62fdf386db346f133baa91;hp=5700025c74fc9f7818c2f167c7e86de00e5c886a;hpb=da31afab09f45aa188f4a6a8c939715a80216992;p=timetracker.git diff --git a/reports.php b/reports.php index 5700025c..fb74e16c 100644 --- a/reports.php +++ b/reports.php @@ -192,9 +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') || ($user->can('view_client_timesheets'))); +$showTimesheetDropdown = $user->isPluginEnabled('ts'); if ($showTimesheetDropdown) { $form->addInput(array('type'=>'combobox', 'name'=>'timesheet', @@ -207,9 +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') || $user->can('view_client_timesheets')); +$showTimesheetCheckbox = $user->isPluginEnabled('ts'); // Add user table. $showUsers = $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient();