X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/f24b365c19384f9c7a4a19b55a2a0df692ab3747..d32410ac096b:/SL/Controller/PriceSource.pm diff --git a/SL/Controller/PriceSource.pm b/SL/Controller/PriceSource.pm index 41ad793ae..85e3765be 100644 --- a/SL/Controller/PriceSource.pm +++ b/SL/Controller/PriceSource.pm @@ -61,7 +61,13 @@ sub render_price_dialog { # sub check_auth { - $::auth->assert('edit_prices'); + if ($::form->{vc} eq 'customer') { + $::auth->assert('sales_edit_prices'); + } elsif ($::form->{vc} eq 'vendor') { + $::auth->assert('purchase_edit_prices'); + } else { + $::auth->assert('no_such_right'); + } } sub init_record { @@ -194,4 +200,3 @@ sub _make_record { } 1; -