X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a62e4bdd1bc89ea4f3cf29507399b5b8f229597a..8dade986970598d2c58e2484342e413bf30be4db:/invoices.php diff --git a/invoices.php b/invoices.php index a03579b0..de51b536 100644 --- a/invoices.php +++ b/invoices.php @@ -28,15 +28,20 @@ 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_client_invoices'))) { header('Location: access_denied.php'); exit(); } +if (!$user->isPluginEnabled('iv')) { + header('Location: feature_disabled.php'); + exit(); +} +// End of access checks. -$invoices = ttTeamHelper::getActiveInvoices(); +$invoices = ttGroupHelper::getActiveInvoices(); $smarty->assign('invoices', $invoices); $smarty->assign('title', $i18n->get('title.invoices'));