X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=invoice_send.php;h=b9e2a29321ed17d25980d79c8d0a9bd00bf3ad62;hb=23ab58c659b527891568a385d8762bf3e6561adf;hp=4ec28bcf2328ceed4a7cedf4fdaadf04aff253ac;hpb=eb55e2f8ca3859482a389795e03b45283e14ef36;p=timetracker.git diff --git a/invoice_send.php b/invoice_send.php index 4ec28bcf..b9e2a293 100644 --- a/invoice_send.php +++ b/invoice_send.php @@ -32,7 +32,7 @@ import('ttInvoiceHelper'); import('ttSysConfig'); // Access check. -if (!ttAccessCheck(right_view_invoices)) { +if (!ttAccessCheck(right_view_invoices) || !$user->isPluginEnabled('iv')) { header('Location: access_denied.php'); exit(); } @@ -88,7 +88,7 @@ if ($request->isPost()) { $mailer->setReceiverCC($cl_cc); $mailer->setSendType(MAIL_MODE); if ($mailer->send($cl_subject, $body)) - $messages->add($i18n->getKey('form.mail.invoice_sent')); + $msg->add($i18n->getKey('form.mail.invoice_sent')); else $err->add($i18n->getKey('error.mail_send')); }