From f935dc9ad6911207122e22003f23ade7b62f8167 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Wed, 20 Feb 2019 17:05:54 +0000 Subject: [PATCH] Another fix for timesheets.php. --- WEB-INF/templates/footer.tpl | 2 +- timesheets.php | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) 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); -- 2.20.1