X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a62e4bdd1bc89ea4f3cf29507399b5b8f229597a..68a5cc5aff88d6144b6db95f7d01315c15e2ebda:/invoice_send.php diff --git a/invoice_send.php b/invoice_send.php index 2c0894a3..f0e30bc4 100644 --- a/invoice_send.php +++ b/invoice_send.php @@ -31,11 +31,15 @@ import('form.Form'); import('ttInvoiceHelper'); import('ttSysConfig'); -// Access check. -if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_own_invoices')) || !$user->isPluginEnabled('iv')) { +// Access checks. +if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_own_invoices'))) { header('Location: access_denied.php'); exit(); } +if (!$user->isPluginEnabled('iv')) { + header('Location: feature_disabled.php'); + exit(); +} $cl_invoice_id = (int)$request->getParameter('id'); $invoice = ttInvoiceHelper::getInvoice($cl_invoice_id);