X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=invoices.php;h=1723a8d1dc698f42af6b9c2825fd550a62d38f58;hb=bcfe9680fdb90d26de543b2c43feabefdcac3c20;hp=a03579b080f9d10a02cd99b4351e4fadb78d8677;hpb=a62e4bdd1bc89ea4f3cf29507399b5b8f229597a;p=timetracker.git diff --git a/invoices.php b/invoices.php index a03579b0..1723a8d1 100644 --- a/invoices.php +++ b/invoices.php @@ -30,11 +30,15 @@ require_once('initialize.php'); import('form.Form'); import('ttTeamHelper'); -// 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(); +} $invoices = ttTeamHelper::getActiveInvoices();