Revision 63bbdf6f
Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt
bin/mozilla/ct.pl | ||
---|---|---|
314 | 314 |
sub add_transaction { |
315 | 315 |
$lxdebug->enter_sub(); |
316 | 316 |
|
317 |
$auth->assert('customer_vendor_edit & general_ledger'); |
|
317 |
$auth->assert('customer_vendor_edit & ' . |
|
318 |
'(general_ledger | invoice_edit | vendor_invoice_edit | ' . |
|
319 |
' request_quotation_edit | sales_quotation_edit | sales_order_edit | purchase_order_edit)'); |
|
318 | 320 |
|
319 | 321 |
# # saving the history |
320 | 322 |
# if(!exists $form->{addition}) { |
... | ... | |
435 | 437 |
sub save_and_order { |
436 | 438 |
$lxdebug->enter_sub(); |
437 | 439 |
|
438 |
$auth->assert('customer_vendor_edit & sales_order_edit'); |
|
440 |
if ($form->{db} eq 'customer') { |
|
441 |
$auth->assert('customer_vendor_edit & sales_order_edit'); |
|
442 |
} else { |
|
443 |
$auth->assert('customer_vendor_edit & purchase_order_edit'); |
|
444 |
} |
|
439 | 445 |
|
440 | 446 |
$form->{script} = "oe.pl"; |
441 | 447 |
$form->{type} = |
Auch abrufbar als: Unified diff
Berechtigungsprüfung bei den Buttons "Speichern und ..." in den Kunden-/Lieferantenstammdaten korrigiert.