Commit b86a8102 authored by Clément OUDOT's avatar Clément OUDOT
Browse files

Fix REST config call for a configuration key (#1960)

parent 37b09f39
......@@ -6,7 +6,7 @@ use Mouse;
use Lemonldap::NG::Common::Conf::Constants;
use Lemonldap::NG::Common::Conf::ReConstants;
our $VERSION = '2.0.6';
our $VERSION = '2.0.7';
extends 'Lemonldap::NG::Common::Conf::AccessLib';
......@@ -800,8 +800,13 @@ sub getKey {
unless ($key) {
return $self->metadata($req);
}
$self->userLogger->info(
'User ' . $self->userId($req) . " asks for key $key" );
if ( $self->can('userId') ) {
$self->userLogger->info(
'User ' . $self->userId($req) . " asks for key $key" );
}
else {
$self->logger->info("REST request to get configuration key $key");
}
my $value = $self->getConfKey( $req, $key );
return $self->sendError( $req, undef, 400 ) if ( $req->error );
......
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