X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ffe5434804888bf520dd69832d0f74d89bcf9999..5ad4d6d7453a373f12f8e457bc3c3463c946b77f:/SL/Controller/CustomerVendor.pm diff --git a/SL/Controller/CustomerVendor.pm b/SL/Controller/CustomerVendor.pm index 63b822eec..0fdd832df 100644 --- a/SL/Controller/CustomerVendor.pm +++ b/SL/Controller/CustomerVendor.pm @@ -479,7 +479,8 @@ sub action_search_contact { sub action_get_delivery { my ($self) = @_; - $::auth->assert('sales_all_edit'); + $::auth->assert('sales_all_edit') if $self->is_customer(); + $::auth->assert('purchase_all_edit') if $self->is_vendor(); my $dbh = $::form->get_standard_dbh(); @@ -621,8 +622,8 @@ sub action_ajaj_autocomplete { } # if someone types something, and hits enter, assume he entered the full name. - # if something matches, treat that as sole match - # unfortunately get_models can't do more than one per package atm, so we d it + # if something matches, treat that as the sole match + # unfortunately get_models can't do more than one per package atm, so we do it # the oldfashioned way. if ($::form->{prefer_exact}) { my $exact_matches;