X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FPriceSource.pm;h=85e3765be0f4b4c35491ac6076fc6c8c96b80021;hb=27fe7b11f5817702c3b47d0187bc9f0ba5328e2f;hp=41ad793aefbc267e16e96b6e382e9b117856228e;hpb=f24b365c19384f9c7a4a19b55a2a0df692ab3747;p=kivitendo-erp.git 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; -