Mercurial > hg > orthanc-authorization
changeset 199:21abcb97ff3c
Fix internal error when the auth-service was not configured to implement the role/permission API
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 02 Jul 2024 15:26:18 +0200 |
parents | 7099d59de4dd |
children | cf368ba6ba62 8c79c3b026ce |
files | NEWS Plugin/Plugin.cpp |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Thu Jun 27 17:05:37 2024 +0200 +++ b/NEWS Tue Jul 02 15:26:18 2024 +0200 @@ -1,3 +1,5 @@ +* Fix internal error when the auth-service was not configured to implement the role/permission API + 2024-06-27 - v 0.8.0 ====================
--- a/Plugin/Plugin.cpp Thu Jun 27 17:05:37 2024 +0200 +++ b/Plugin/Plugin.cpp Tue Jul 02 15:26:18 2024 +0200 @@ -1071,7 +1071,7 @@ if (!authorizationService_->GetSettingsRoles(roles)) { - throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, "Could not retrieve roles from the auth-service", true); + LOG(WARNING) << "Could not retrieve roles from the auth-service. The auth-service might not provide this feature or is not configured correctly."; } OrthancPlugins::AnswerJson(roles, output);