X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=invoice_send.php;h=48bc14f072a55d61737cb912ae99c94fe6b1cec6;hb=3f7ed883e1c7d75aacc49900b403f8e84a68dc3f;hp=eb4b2a3f736ec60bbf307cffab8fabc864cfe797;hpb=76dd7930c2ef4f6de65bd98acfd3d0ef25979c18;p=timetracker.git diff --git a/invoice_send.php b/invoice_send.php index eb4b2a3f..48bc14f0 100644 --- a/invoice_send.php +++ b/invoice_send.php @@ -32,7 +32,7 @@ import('ttInvoiceHelper'); import('ttSysConfig'); // 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(); }