projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A bit more progress on refactoring access checks.
[timetracker.git]
/
invoice_add.php
diff --git
a/invoice_add.php
b/invoice_add.php
index
ed0a8c5
..
5267056
100644
(file)
--- a/
invoice_add.php
+++ b/
invoice_add.php
@@
-31,11
+31,15
@@
import('form.Form');
import('ttTeamHelper');
import('ttInvoiceHelper');
import('ttTeamHelper');
import('ttInvoiceHelper');
-// Access check.
-if (!ttAccessAllowed('manage_invoices')
|| !$user->isPluginEnabled('iv')
) {
+// Access check
s
.
+if (!ttAccessAllowed('manage_invoices')) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
+if (!$user->isPluginEnabled('iv')) {
+ header('Location: feature_disabled.php');
+ exit();
+}
if ($request->isPost()) {
$cl_date = $request->getParameter('date');
if ($request->isPost()) {
$cl_date = $request->getParameter('date');