projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Started to work on configurable holidays.
[timetracker.git]
/
invoices.php
diff --git
a/invoices.php
b/invoices.php
index
a03579b
..
de51b53
100644
(file)
--- a/
invoices.php
+++ b/
invoices.php
@@
-28,15
+28,20
@@
require_once('initialize.php');
import('form.Form');
require_once('initialize.php');
import('form.Form');
-import('tt
Team
Helper');
+import('tt
Group
Helper');
-// Access check.
-if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_
own_invoices')) || !$user->isPluginEnabled('iv'
)) {
+// Access check
s
.
+if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_
client_invoices')
)) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
+if (!$user->isPluginEnabled('iv')) {
+ header('Location: feature_disabled.php');
+ exit();
+}
+// End of access checks.
-$invoices = tt
Team
Helper::getActiveInvoices();
+$invoices = tt
Group
Helper::getActiveInvoices();
$smarty->assign('invoices', $invoices);
$smarty->assign('title', $i18n->get('title.invoices'));
$smarty->assign('invoices', $invoices);
$smarty->assign('title', $i18n->get('title.invoices'));