X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a3ec528f0b31400a9cdda44211ae495a6512c648..f935dc9ad6911207122e22003f23ade7b62f8167:/timesheets.php 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);