X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=invoice_view.php;h=4a6027a5b86f81bb04c24e59e194fa242ed7fa9a;hb=7916f561fed6b50348f144fc411ca82ee9bd5ebb;hp=7661d9c92026cfa47c88459a75ee2e3c6dc499b3;hpb=b7df85b084e9aaecef29ff6712015194f96e0c22;p=timetracker.git diff --git a/invoice_view.php b/invoice_view.php index 7661d9c9..4a6027a5 100644 --- a/invoice_view.php +++ b/invoice_view.php @@ -33,7 +33,7 @@ import('ttClientHelper'); import('form.Form'); // 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(); }