Mercurial > hg > orthanc-authorization
changeset 82:1c91a1cbbc35
fix
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 17 Mar 2023 15:01:15 +0100 |
parents | fac45493d547 |
children | 23afe0f2b62b |
files | Plugin/Plugin.cpp |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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; + } } }