From: Nik Okuntseff Date: Wed, 20 Feb 2019 17:05:54 +0000 (+0000) Subject: Another fix for timesheets.php. X-Git-Tag: timetracker_1.19-1~304 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f935dc9ad6911207122e22003f23ade7b62f8167;p=timetracker.git Another fix for timesheets.php. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index ae33f157..ae04c10a 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.37.4745 | Copyright © Anuko | +  Anuko Time Tracker 1.18.37.4746 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/timesheets.php b/timesheets.php index 0a926d91..63a1bb34 100644 --- a/timesheets.php +++ b/timesheets.php @@ -96,12 +96,10 @@ if ($user->can('view_timesheets') || $user->can('view_all_timesheets') || $user- } } - - - -// TODO: fix this for client access. $active_timesheets = ttTimesheetHelper::getActiveTimesheets($user_id); -$inactive_timesheets = ttTimesheetHelper::getInactiveTimesheets($user_id); +if ($notClient) + $inactive_timesheets = ttTimesheetHelper::getInactiveTimesheets($user_id); + $show_client = $user->isPluginEnabled('cl') && $notClient; $smarty->assign('active_timesheets', $active_timesheets);