Commit e279cd49 authored by Benjamin Rokseth's avatar Benjamin Rokseth
Browse files

koha: remove some more logging

parent 7dff415c
...@@ -119,7 +119,7 @@ sub checkAuthMethods { ...@@ -119,7 +119,7 @@ sub checkAuthMethods {
try { try {
$auth = $class->new()->DoAuth($session, $req); $auth = $class->new()->DoAuth($session, $req);
} catch { } catch {
$self->{logger}->debug("Session auth failed: ". warn $_->description); $self->{logger}->debug("Session auth failed: ". $_->description);
}; };
$auth->{auth} and return $auth->{auth}; $auth->{auth} and return $auth->{auth};
} }
......
...@@ -47,7 +47,6 @@ my $input = new CGI; ...@@ -47,7 +47,6 @@ my $input = new CGI;
my ( $auth_status, $session ) = check_cookie_auth( $input->cookie("koha.session")); my ( $auth_status, $session ) = check_cookie_auth( $input->cookie("koha.session"));
my $auth = $session->param("auth"); my $auth = $session->param("auth");
use Data::Dumper; warn Dumper($auth);
my $permissions = $auth->{permissions}; my $permissions = $auth->{permissions};
($permissions->{superlibrarian} || $permissions->{circulate} || $permissions->{borrowers}) || exit 0; ($permissions->{superlibrarian} || $permissions->{circulate} || $permissions->{borrowers}) || exit 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment