diff --git a/www/lib/DNSManager.pm b/www/lib/DNSManager.pm index b834613..d1383a9 100644 --- a/www/lib/DNSManager.pm +++ b/www/lib/DNSManager.pm @@ -46,8 +46,7 @@ get '/' => sub { if( $success ) { template index => { - logged => true - , login => session('login') + login => session('login') , admin => session('admin') , domains => [ @domains ] }; } @@ -222,7 +221,6 @@ any ['get', 'post'] => '/admin' => sub { unless ( $auth_ok && $isadmin ) { redirect '/ '; - return; } else { diff --git a/www/views/administration.tt b/www/views/administration.tt index d57a138..5ea01ac 100644 --- a/www/views/administration.tt +++ b/www/views/administration.tt @@ -1,25 +1,4 @@ -
+<% include sidebar.tt %>