X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a62e4bdd1bc89ea4f3cf29507399b5b8f229597a..d9ef3e94c49d9b5e8c7532efc8b460c3e1135fdd:/invoice_add.php diff --git a/invoice_add.php b/invoice_add.php index ed0a8c52..5267056c 100644 --- a/invoice_add.php +++ b/invoice_add.php @@ -31,11 +31,15 @@ import('form.Form'); import('ttTeamHelper'); import('ttInvoiceHelper'); -// Access check. -if (!ttAccessAllowed('manage_invoices') || !$user->isPluginEnabled('iv')) { +// Access checks. +if (!ttAccessAllowed('manage_invoices')) { header('Location: access_denied.php'); exit(); } +if (!$user->isPluginEnabled('iv')) { + header('Location: feature_disabled.php'); + exit(); +} if ($request->isPost()) { $cl_date = $request->getParameter('date');