projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed prePopulateFromPastWeeks for week view plugin.
[timetracker.git]
/
invoices.php
diff --git
a/invoices.php
b/invoices.php
index
1723a8d
..
de51b53
100644
(file)
--- a/
invoices.php
+++ b/
invoices.php
@@
-28,10
+28,10
@@
require_once('initialize.php');
import('form.Form');
require_once('initialize.php');
import('form.Form');
-import('tt
Team
Helper');
+import('tt
Group
Helper');
// Access checks.
// 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,8
+39,9
@@
if (!$user->isPluginEnabled('iv')) {
header('Location: feature_disabled.php');
exit();
}
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'));