From: Nik Okuntseff Date: Sat, 23 Feb 2019 14:57:01 +0000 (+0000) Subject: Fixed display of Timesheet checkbox for clients. X-Git-Tag: timetracker_1.19-1~291 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=eba5280c22e659f7144ccb5129424f645bada9ab;p=timetracker.git Fixed display of Timesheet checkbox for clients. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 049d1f37..951bba17 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.37.4756 | Copyright © Anuko | +  Anuko Time Tracker 1.18.37.4757 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/reports.php b/reports.php index 05d7e5f2..264e5645 100644 --- a/reports.php +++ b/reports.php @@ -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',