projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed debug tracing from time.php to keep it simple.
[timetracker.git]
/
mobile
/
expense_edit.php
diff --git
a/mobile/expense_edit.php
b/mobile/expense_edit.php
index
e9e1ca6
..
10035a9
100644
(file)
--- 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);
$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();
}
header('Location: access_denied.php');
exit();
}