X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=invoices.php;h=0617a44f2020043dedee8797af0f704f4521057d;hb=c138ab042a599beb780895e5a5f54a1b287d67ae;hp=ad0b28533546d5914232f46d507a35dafefe90a4;hpb=5ef582473f6b329be18ad83c61e053fdcd9c6ed5;p=timetracker.git diff --git a/invoices.php b/invoices.php index ad0b2853..0617a44f 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(); }