X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a62e4bdd1bc89ea4f3cf29507399b5b8f229597a..68a5cc5aff88d6144b6db95f7d01315c15e2ebda:/invoice_view.php diff --git a/invoice_view.php b/invoice_view.php index 3715b80a..62f0cbbf 100644 --- a/invoice_view.php +++ b/invoice_view.php @@ -32,11 +32,15 @@ import('ttInvoiceHelper'); import('ttClientHelper'); import('form.Form'); -// 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_id = (int)$request->getParameter('id'); $invoice = ttInvoiceHelper::getInvoice($cl_id);