Simplified templates by using the default Smarty escape calls.
[timetracker.git] / invoices.php
index f495292..a014472 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