X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/0dfc4dda20c54e173938eaf196f8e071ce790830..813f43a9406fb5adfb8c6e89cd97b06a11da58c9:/invoice_add.php diff --git a/invoice_add.php b/invoice_add.php index f68753fc..01b77615 100644 --- a/invoice_add.php +++ b/invoice_add.php @@ -32,7 +32,7 @@ import('ttTeamHelper'); import('ttInvoiceHelper'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessAllowed('manage_invoices') || !$user->isPluginEnabled('iv')) { header('Location: access_denied.php'); exit(); }