From dc6afb8c541b87ef5434d64ca53852d1a6934620 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 5 Jun 2009 06:31:43 +0000 Subject: [PATCH] Rechteproblem bei Lieferscheinen behoben. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Die display_form() in invoice_io.pl wird auch für Lieferscheine aufgereufen. Deshalb muss sie auch auf Lieferscheinrechte überprüfen. Fix für Bug 1030. --- bin/mozilla/invoice_io.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/invoice_io.pl b/bin/mozilla/invoice_io.pl index 2e9fc5d1c..d947bae23 100644 --- a/bin/mozilla/invoice_io.pl +++ b/bin/mozilla/invoice_io.pl @@ -596,8 +596,9 @@ sub set_pricegroup { sub display_form { $lxdebug->enter_sub(); - $auth->assert('part_service_assembly_edit | vendor_invoice_edit | sales_order_edit | invoice_edit |' . - 'request_quotation_edit | sales_quotation_edit | purchase_order_edit'); + $auth->assert('part_service_assembly_edit | vendor_invoice_edit | sales_order_edit | invoice_edit |' . + 'request_quotation_edit | sales_quotation_edit | purchase_order_edit | '. + 'purchase_delivery_order_edit | sales_delivery_order_edit'); relink_accounts(); retrieve_partunits() if ($form->{type} =~ /_delivery_order$/); -- 2.20.1