From 63bbdf6f7785384051cdb61b6ef906e4344f48b6 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 22 Jul 2008 09:50:02 +0000 Subject: [PATCH] =?utf8?q?Berechtigungspr=C3=BCfung=20bei=20den=20Buttons?= =?utf8?q?=20"Speichern=20und=20..."=20in=20den=20Kunden-/Lieferantenstamm?= =?utf8?q?daten=20korrigiert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/ct.pl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 29a0283cd..3b8a459b0 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -314,7 +314,9 @@ sub form_footer { sub add_transaction { $lxdebug->enter_sub(); - $auth->assert('customer_vendor_edit & general_ledger'); + $auth->assert('customer_vendor_edit & ' . + '(general_ledger | invoice_edit | vendor_invoice_edit | ' . + ' request_quotation_edit | sales_quotation_edit | sales_order_edit | purchase_order_edit)'); # # saving the history # if(!exists $form->{addition}) { @@ -435,7 +437,11 @@ sub save_and_quotation { sub save_and_order { $lxdebug->enter_sub(); - $auth->assert('customer_vendor_edit & sales_order_edit'); + if ($form->{db} eq 'customer') { + $auth->assert('customer_vendor_edit & sales_order_edit'); + } else { + $auth->assert('customer_vendor_edit & purchase_order_edit'); + } $form->{script} = "oe.pl"; $form->{type} = -- 2.20.1