import('ttTeamHelper');
// Access check.
-if (!ttAccessCheck(right_view_invoices)) {
+if (!ttAccessCheck(right_view_invoices) || !$user->isPluginEnabled('iv')) {
header('Location: access_denied.php');
exit();
}
$smarty->assign('title', $i18n->getKey('title.invoices'));
$smarty->assign('content_page_name', 'invoices.tpl');
$smarty->display('index.tpl');
-?>
\ No newline at end of file