X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fexpense_edit.php;h=10035a9b42d4dcc05dd4707a01d99ede11a1b5f7;hb=1e3383a77ff48e718b9571d323acc3e90170784d;hp=e9e1ca63a7a4d9e238b2d2df3868dc29a46c6a06;hpb=903dae76e54a4e0c081532a8113c00ef1b56a1b5;p=timetracker.git diff --git a/mobile/expense_edit.php b/mobile/expense_edit.php index e9e1ca63..10035a9b 100644 --- a/mobile/expense_edit.php +++ b/mobile/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(); }