X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/e3df211bb657c8036e7c767eeee660fc402a357e..a8967b288d201edff6e4f87e7b0bccb1bf55c483:/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();