X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Ftime_edit.php;h=e81f693cab30641454fcd74355f8cb7410f713ea;hb=a9b8fe4baec922f724f188e25d98f9e964e9ef26;hp=1f8f7de91ccbfc0a83969503b774c2d50fb098f9;hpb=086b93bd5a71b4c68ae3fa3e37d97182ee2a5b73;p=timetracker.git diff --git a/mobile/time_edit.php b/mobile/time_edit.php index 1f8f7de9..e81f693c 100644 --- a/mobile/time_edit.php +++ b/mobile/time_edit.php @@ -41,8 +41,8 @@ if (!ttAccessAllowed('track_own_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(); }