Rechteprüfung bei Zugriff auf Zahlungsbedingungen-Controller
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 12 May 2011 09:48:49 +0000 (11:48 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 12 May 2011 09:48:49 +0000 (11:48 +0200)
Conflicts:

SL/Controller/PaymentTerm.pm

SL/Controller/PaymentTerm.pm

index 92cff0c..55401ba 100644 (file)
@@ -13,6 +13,7 @@ use Rose::Object::MakeMethods::Generic
  scalar => [ qw(payment_term languages) ],
 );
 
+__PACKAGE__->run_before('check_auth');
 __PACKAGE__->run_before('load_payment_term', only => [ qw(         edit        update destroy move_up move_down) ]);
 __PACKAGE__->run_before('load_languages',    only => [ qw(new list edit create update) ]);
 
@@ -77,6 +78,14 @@ sub action_reorder {
   $self->render(type => 'js', inline => '1;');
 }
 
+#
+# filters
+#
+
+sub check_auth {
+  $::auth->assert('config');
+}
+
 #
 # helpers
 #