X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/086b93bd5a71b4c68ae3fa3e37d97182ee2a5b73..89a5c1982ce74075e74a814c170e3d87563d5c47:/time_edit.php diff --git a/time_edit.php b/time_edit.php index 23cc63d5..ef45226b 100644 --- a/time_edit.php +++ b/time_edit.php @@ -41,8 +41,8 @@ if (!(ttAccessAllowed('track_own_time') || ttAccessAllowed('track_time'))) { } $cl_id = (int)$request->getParameter('id'); $time_rec = ttTimeHelper::getRecord($cl_id); -if (!$time_rec || $time_rec['timesheet_id'] || $time_rec['invoice_id']) { - // Prohibit editing not ours, or assigned to timesheet, or invoiced records. +if (!$time_rec || $time_rec['approved'] || $time_rec['timesheet_id'] || $time_rec['invoice_id']) { + // Prohibit editing not ours, approved, assigned to timesheet, or invoiced records. header('Location: access_denied.php'); exit(); }