X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/f30b876933acf131cbdfbf89ae7717faffa85f2d..c3e6cb49a67ee660c2eaeef53e15c85c19d805dd:/time_files.php diff --git a/time_files.php b/time_files.php index 2ba0efce..40a0c506 100644 --- a/time_files.php +++ b/time_files.php @@ -36,17 +36,16 @@ if (!(ttAccessAllowed('track_own_time') || ttAccessAllowed('track_time'))) { header('Location: access_denied.php'); exit(); } +if (!$user->isPluginEnabled('at')) { + header('Location: feature_disabled.php'); + exit(); +} $cl_id = (int)$request->getParameter('id'); -$time_rec = ttTimeHelper::getRecord($cl_id); +$time_rec = ttTimeHelper::getRecordForFileView($cl_id); if (!$time_rec) { header('Location: access_denied.php'); exit(); } -if (!$user->isPluginEnabled('at')) { - header('Location: feature_disabled.php'); - exit(); -} -// TODO: review access checks, specifically for on behalf operations. // End of access checks. if ($request->isPost()) {