X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=invoices.php;h=a03579b080f9d10a02cd99b4351e4fadb78d8677;hb=e59d57b1fcf105382028dcfc0157a6ca84b0dc46;hp=f495292e1144059b7b3fb06c934171bde21f99b3;hpb=098a79f0819ebb89b7d48df4a6b154af4560f68e;p=timetracker.git diff --git a/invoices.php b/invoices.php index f495292e..a03579b0 100644 --- a/invoices.php +++ b/invoices.php @@ -31,7 +31,7 @@ import('form.Form'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_view_invoices)) { +if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_own_invoices')) || !$user->isPluginEnabled('iv')) { header('Location: access_denied.php'); exit(); } @@ -39,7 +39,6 @@ if (!ttAccessCheck(right_view_invoices)) { $invoices = ttTeamHelper::getActiveInvoices(); $smarty->assign('invoices', $invoices); -$smarty->assign('title', $i18n->getKey('title.invoices')); +$smarty->assign('title', $i18n->get('title.invoices')); $smarty->assign('content_page_name', 'invoices.tpl'); $smarty->display('index.tpl'); -?> \ No newline at end of file