projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finished improving access checks by providing separate error msg for disabled features.
[timetracker.git]
/
mobile
/
expense_edit.php
diff --git
a/mobile/expense_edit.php
b/mobile/expense_edit.php
index
7107e78
..
8da55a1
100644
(file)
--- a/
mobile/expense_edit.php
+++ b/
mobile/expense_edit.php
@@
-32,11
+32,15
@@
import('ttTeamHelper');
import('DateAndTime');
import('ttExpenseHelper');
import('DateAndTime');
import('ttExpenseHelper');
-// Access check.
-if (!
ttAccessAllowed('track_own_expenses') || !$user->isPluginEnabled('ex'
)) {
+// Access check
s
.
+if (!
(ttAccessAllowed('track_own_expenses') || ttAccessAllowed('track_expenses')
)) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
+if (!$user->isPluginEnabled('ex')) {
+ header('Location: feature_disabled.php');
+ exit();
+}
$cl_id = $request->getParameter('id');
$cl_id = $request->getParameter('id');