Admin-Controller: bei Session-Fehler MenĂ¼ nicht anzeigen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 19 Jul 2013 15:50:00 +0000 (17:50 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 19 Jul 2013 15:50:20 +0000 (17:50 +0200)
SL/Dispatcher/AuthHandler/Admin.pm

index babdc22..ad7c1f4 100644 (file)
@@ -23,6 +23,7 @@ sub handle {
   }
 
   $::request->{layout} = SL::Layout::Dispatcher->new(style => 'admin');
+  $::request->layout->no_menu(1);
   $::auth->delete_session_value('admin_password');
   $::auth->punish_wrong_login;
   SL::Dispatcher::show_error('admin/adminlogin', 'password');