]> wagnertech.de Git - timetracker.git/blobdiff - invoice_add.php
Extended right set for more flexibility.
[timetracker.git] / invoice_add.php
index 0e752dca35d6d236329cd4a8be217659ee6ea17b..01b77615e407848a9df79b74ed4931b542113d0d 100644 (file)
@@ -32,7 +32,7 @@ import('ttTeamHelper');
 import('ttInvoiceHelper');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('iv')) {
+if (!ttAccessAllowed('manage_invoices') || !$user->isPluginEnabled('iv')) {
   header('Location: access_denied.php');
   exit();
 }