X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=invoices.php;h=0617a44f2020043dedee8797af0f704f4521057d;hb=f340e538c5e269b9035905e808220a5683b079c4;hp=a014472f3920c80b4e1b1d8a2de7c158978dadfd;hpb=3ad790a3d4bc23cb23f7ee072171ca6ef987eb56;p=timetracker.git diff --git a/invoices.php b/invoices.php index a014472f..0617a44f 100644 --- a/invoices.php +++ b/invoices.php @@ -31,7 +31,7 @@ import('form.Form'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_view_invoices) || !$user->isPluginEnabled('iv')) { +if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_own_invoices')) || !$user->isPluginEnabled('iv')) { header('Location: access_denied.php'); exit(); }