# HG changeset patch # User Alain Mazy # Date 1679061675 -3600 # Node ID 1c91a1cbbc3528a15c5ca3be14cbc189ec5f1b67 # Parent fac45493d547fc524988e8c0d6380ee9a0f8595f fix diff -r fac45493d547 -r 1c91a1cbbc35 Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Thu Mar 16 17:38:03 2023 +0100 +++ b/Plugin/Plugin.cpp Fri Mar 17 15:01:15 2023 +0100 @@ -515,10 +515,11 @@ if (hasValue) { unsigned int validity; // not used - authorizationService_->GetUserProfile(validity, profile, *token, value); - - OrthancPlugins::AnswerJson(profile, output); - break; + if (authorizationService_->GetUserProfile(validity, profile, *token, value)) + { + OrthancPlugins::AnswerJson(profile, output); + return; + } } }