X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time_edit.php;h=ef45226b883c0c59235c92c5f34f04b58c2e4a83;hb=fe8af9a04f7170a0623915f31610c6c4c3df4058;hp=23cc63d5abbf21d025499aa648eb1d6534198955;hpb=086b93bd5a71b4c68ae3fa3e37d97182ee2a5b73;p=timetracker.git 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(); }