X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/e3df211bb657c8036e7c767eeee660fc402a357e..4a23c8efa5cd0af46cef4a602b5897f9b8e14636:/invoices.php diff --git a/invoices.php b/invoices.php index eb89e0ea..de51b536 100644 --- a/invoices.php +++ b/invoices.php @@ -31,7 +31,7 @@ import('form.Form'); import('ttGroupHelper'); // Access checks. -if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_own_invoices'))) { +if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_client_invoices'))) { header('Location: access_denied.php'); exit(); } @@ -39,6 +39,7 @@ if (!$user->isPluginEnabled('iv')) { header('Location: feature_disabled.php'); exit(); } +// End of access checks. $invoices = ttGroupHelper::getActiveInvoices();