Added more access control checks.
[timetracker.git] / invoice_add.php
index f68753f..0e752dc 100644 (file)
@@ -32,7 +32,7 @@ import('ttTeamHelper');
 import('ttInvoiceHelper');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team)) {
+if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('iv')) {
   header('Location: access_denied.php');
   exit();
 }