X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=invoice_add.php;h=ad9c3cfb8cb2693d586d493a6fe97dce78b97909;hb=40e7c879cbbc4f00227c039f1a86d48f81e10101;hp=ed0a8c52637f1578a0c9e100f5554e5a92d9ee1b;hpb=a62e4bdd1bc89ea4f3cf29507399b5b8f229597a;p=timetracker.git diff --git a/invoice_add.php b/invoice_add.php index ed0a8c52..ad9c3cfb 100644 --- a/invoice_add.php +++ b/invoice_add.php @@ -31,11 +31,16 @@ 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(); +} +// End of access checks. if ($request->isPost()) { $cl_date = $request->getParameter('date');