From: Moritz Bunkus Date: Fri, 5 Jun 2009 06:31:43 +0000 (+0000) Subject: Rechteproblem bei Lieferscheinen behoben. X-Git-Tag: release-2.6.1beta1~423 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=dc6afb8c541b87ef5434d64ca53852d1a6934620;p=kivitendo-erp.git Rechteproblem bei Lieferscheinen behoben. 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. --- 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$/);