]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/Part.pm
Developer Recht und neue Menüeinträge für Testcontroller
[mfinanz.git] / SL / Controller / Part.pm
index 3f7409e8bb14a010d83c398f0fd7c9a80c2542fa..cdab2a4c5a61cbd753af48dc1b075e7e6bf928e0 100644 (file)
@@ -41,6 +41,9 @@ use Rose::Object::MakeMethods::Generic (
 __PACKAGE__->run_before(sub { $::auth->assert('part_service_assembly_edit') },
                         except => [ qw(ajax_autocomplete part_picker_search part_picker_result) ]);
 
+__PACKAGE__->run_before(sub { $::auth->assert('developer') },
+                        only => [ qw(test_page) ]);
+
 __PACKAGE__->run_before('check_part_id', only   => [ qw(edit delete) ]);
 
 # actions for editing parts