projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some refactoring.
[timetracker.git]
/
invoices.php
diff --git
a/invoices.php
b/invoices.php
index
a014472
..
0617a44
100644
(file)
--- a/
invoices.php
+++ b/
invoices.php
@@
-31,7
+31,7
@@
import('form.Form');
import('ttTeamHelper');
// Access check.
import('ttTeamHelper');
// Access check.
-if (!
ttAccessCheck(right_view_invoices
) || !$user->isPluginEnabled('iv')) {
+if (!
(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_own_invoices')
) || !$user->isPluginEnabled('iv')) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}