projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed export and import. Now teams should be imported with roles.
[timetracker.git]
/
invoice_send.php
diff --git
a/invoice_send.php
b/invoice_send.php
index
eb4b2a3
..
48bc14f
100644
(file)
--- a/
invoice_send.php
+++ b/
invoice_send.php
@@
-32,7
+32,7
@@
import('ttInvoiceHelper');
import('ttSysConfig');
// Access check.
import('ttSysConfig');
// 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();
}