X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/bc7836c64252d104495878af3c005210cb977072..c7d73ed8f6e2deade801bedaeb3af934ba69bf88:/timesheet_view.php diff --git a/timesheet_view.php b/timesheet_view.php index bbac161c..bd97a52a 100644 --- a/timesheet_view.php +++ b/timesheet_view.php @@ -50,7 +50,12 @@ if (!$timesheet) { $options = ttTimesheetHelper::getReportOptions($timesheet); $subtotals = ttReportHelper::getSubtotals($options); $totals = ttReportHelper::getTotals($options); +$notClient = !$user->isClient(); +// Determine managers we can submit this timesheet for approval to. +$approvers = ttTimesheetHelper::getApprovers($timesheet['user_id']); + +$smarty->assign('not_client', $notClient); $smarty->assign('group_by_header', ttReportHelper::makeGroupByHeader($options)); $smarty->assign('timesheet', $timesheet); $smarty->assign('subtotals', $subtotals);