posaune
[timetracker.git] / invoices.php
index eb89e0e..de51b53 100644 (file)
@@ -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();