projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Conditional display of label.users if there are no inactive users.
[timetracker.git]
/
invoices.php
diff --git
a/invoices.php
b/invoices.php
index
eb89e0e
..
de51b53
100644
(file)
--- a/
invoices.php
+++ b/
invoices.php
@@
-31,7
+31,7
@@
import('form.Form');
import('ttGroupHelper');
// Access checks.
import('ttGroupHelper');
// Access checks.
-if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_
own
_invoices'))) {
+if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_
client
_invoices'))) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
@@
-39,6
+39,7
@@
if (!$user->isPluginEnabled('iv')) {
header('Location: feature_disabled.php');
exit();
}
header('Location: feature_disabled.php');
exit();
}
+// End of access checks.
$invoices = ttGroupHelper::getActiveInvoices();
$invoices = ttGroupHelper::getActiveInvoices();