Revision c4a13349
Von Bernd Bleßmann vor fast 3 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
56 | 56 |
# safety |
57 | 57 |
__PACKAGE__->run_before('check_auth'); |
58 | 58 |
|
59 |
__PACKAGE__->run_before('check_auth_save',
|
|
59 |
__PACKAGE__->run_before('check_auth_for_edit',
|
|
60 | 60 |
except => [ qw(edit show_customer_vendor_details_dialog price_popup load_second_rows) ]); |
61 | 61 |
|
62 | 62 |
__PACKAGE__->run_before('recalc', |
... | ... | |
1381 | 1381 |
$::auth->assert($right); |
1382 | 1382 |
} |
1383 | 1383 |
|
1384 |
sub check_auth_save {
|
|
1384 |
sub check_auth_for_edit {
|
|
1385 | 1385 |
my ($self) = @_; |
1386 | 1386 |
|
1387 | 1387 |
my $right_for = { map { $_ => $_.'_edit' } @{$self->valid_types} }; |
Auch abrufbar als: Unified diff
Auftrags-Controller: before-run-hook deutlicher benannt