]> wagnertech.de Git - timetracker.git/blobdiff - invoices.php
More refactoring in Form.class.php.
[timetracker.git] / invoices.php
index f495292e1144059b7b3fb06c934171bde21f99b3..a014472f3920c80b4e1b1d8a2de7c158978dadfd 100644 (file)
@@ -31,7 +31,7 @@ import('form.Form');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessCheck(right_view_invoices)) {
+if (!ttAccessCheck(right_view_invoices) || !$user->isPluginEnabled('iv')) {
   header('Location: access_denied.php');
   exit();
 }
@@ -42,4 +42,3 @@ $smarty->assign('invoices', $invoices);
 $smarty->assign('title', $i18n->getKey('title.invoices'));
 $smarty->assign('content_page_name', 'invoices.tpl');
 $smarty->display('index.tpl');
-?>
\ No newline at end of file