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
a014472
..
de51b53
100644
(file)
--- a/
invoices.php
+++ b/
invoices.php
@@
-28,17
+28,22
@@
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 (!
ttAccessCheck(right_view_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('invoices', $invoices);
-$smarty->assign('title', $i18n->get
Key
('title.invoices'));
+$smarty->assign('title', $i18n->get('title.invoices'));
$smarty->assign('content_page_name', 'invoices.tpl');
$smarty->display('index.tpl');
$smarty->assign('content_page_name', 'invoices.tpl');
$smarty->display('index.tpl');