X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=invoices.php;h=1723a8d1dc698f42af6b9c2825fd550a62d38f58;hb=f9e704d00a2d21b1a94332e088f78c22da03d37c;hp=0617a44f2020043dedee8797af0f704f4521057d;hpb=b401022733a9645ed701522585b2d57db936f5cc;p=timetracker.git diff --git a/invoices.php b/invoices.php index 0617a44f..1723a8d1 100644 --- a/invoices.php +++ b/invoices.php @@ -30,15 +30,19 @@ 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(); $smarty->assign('invoices', $invoices); -$smarty->assign('title', $i18n->getKey('title.invoices')); +$smarty->assign('title', $i18n->get('title.invoices')); $smarty->assign('content_page_name', 'invoices.tpl'); $smarty->display('index.tpl');