projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More refactoring in reports.
[timetracker.git]
/
invoices.php
diff --git
a/invoices.php
b/invoices.php
index
a03579b
..
1723a8d
100644
(file)
--- a/
invoices.php
+++ b/
invoices.php
@@
-30,11
+30,15
@@
require_once('initialize.php');
import('form.Form');
import('ttTeamHelper');
import('form.Form');
import('ttTeamHelper');
-// Access check.
-if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_own_invoices'))
|| !$user->isPluginEnabled('iv')
) {
+// Access check
s
.
+if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_own_invoices'))) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
+if (!$user->isPluginEnabled('iv')) {
+ header('Location: feature_disabled.php');
+ exit();
+}
$invoices = ttTeamHelper::getActiveInvoices();
$invoices = ttTeamHelper::getActiveInvoices();