X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a62e4bdd1bc89ea4f3cf29507399b5b8f229597a..e3df211bb657c8036e7c767eeee660fc402a357e:/invoices.php diff --git a/invoices.php b/invoices.php index a03579b0..eb89e0ea 100644 --- a/invoices.php +++ b/invoices.php @@ -28,15 +28,19 @@ require_once('initialize.php'); import('form.Form'); -import('ttTeamHelper'); +import('ttGroupHelper'); -// 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(); +$invoices = ttGroupHelper::getActiveInvoices(); $smarty->assign('invoices', $invoices); $smarty->assign('title', $i18n->get('title.invoices'));