Rechteproblem bei Lieferscheinen behoben.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 5 Jun 2009 06:31:43 +0000 (06:31 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 5 Jun 2009 06:31:43 +0000 (06:31 +0000)
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

index 2e9fc5d..d947bae 100644 (file)
@@ -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$/);