projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e81f9f4
)
Auftrags-Controller: before-run-hook deutlicher benannt
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Mon, 7 Mar 2022 07:58:57 +0000
(08:58 +0100)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Tue, 8 Mar 2022 16:44:27 +0000
(17:44 +0100)
SL/Controller/Order.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Order.pm
b/SL/Controller/Order.pm
index
87a9e9c
..
e13339b
100644
(file)
--- 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} };