X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/903dae76e54a4e0c081532a8113c00ef1b56a1b5..c3e6cb49a67ee660c2eaeef53e15c85c19d805dd:/expense_edit.php diff --git a/expense_edit.php b/expense_edit.php index b1115f1e..877ec663 100644 --- a/expense_edit.php +++ b/expense_edit.php @@ -45,8 +45,8 @@ if (!$user->isPluginEnabled('ex')) { $cl_id = (int)$request->getParameter('id'); // Get the expense item we are editing. $expense_item = ttExpenseHelper::getItem($cl_id); -if (!$expense_item || $expense_item['invoice_id']) { - // Prohibit editing not ours or invoiced items. +if (!$expense_item || $expense_item['approved'] || $expense_item['invoice_id']) { + // Prohibit editing not ours, approved, or invoiced items. header('Location: access_denied.php'); exit(); }