Rechteprüfung im Part-Controller nicht für Part-Picker-Aktionen durchführen.
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 19 Feb 2014 12:20:32 +0000 (13:20 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 19 Feb 2014 12:20:32 +0000 (13:20 +0100)
Behebt #2451.

SL/Controller/Part.pm

index 6b76252..4349b1f 100644 (file)
@@ -14,7 +14,8 @@ use Rose::Object::MakeMethods::Generic (
 );
 
 # safety
-__PACKAGE__->run_before(sub { $::auth->assert('part_service_assembly_edit') });
+__PACKAGE__->run_before(sub { $::auth->assert('part_service_assembly_edit') },
+                        except => [ qw(ajax_autocomplete part_picker_search part_picker_result) ]);
 
 sub action_ajax_autocomplete {
   my ($self, %params) = @_;