From: Bernd Bleßmann Date: Mon, 7 Mar 2022 07:58:57 +0000 (+0100) Subject: Auftrags-Controller: before-run-hook deutlicher benannt X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~147^2~7 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c4a13349f53975eb5e1e0d8ae6f4e09f5a334797;p=kivitendo-erp.git Auftrags-Controller: before-run-hook deutlicher benannt --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 87a9e9cf4..e13339b2e 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -56,7 +56,7 @@ use Rose::Object::MakeMethods::Generic # safety __PACKAGE__->run_before('check_auth'); -__PACKAGE__->run_before('check_auth_save', +__PACKAGE__->run_before('check_auth_for_edit', except => [ qw(edit show_customer_vendor_details_dialog price_popup load_second_rows) ]); __PACKAGE__->run_before('recalc', @@ -1381,7 +1381,7 @@ sub check_auth { $::auth->assert($right); } -sub check_auth_save { +sub check_auth_for_edit { my ($self) = @_; my $right_for = { map { $_ => $_.'_edit' } @{$self->valid_types} };