Mercurial > hg > orthanc-authorization
changeset 255:ccc1038b3b45 inbox
fix
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 15 Jul 2025 14:29:59 +0200 |
parents | dabd229db543 |
children | 28abb0c74264 |
files | Plugin/Plugin.cpp |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugin/Plugin.cpp Tue Jul 15 14:25:29 2025 +0200 +++ b/Plugin/Plugin.cpp Tue Jul 15 14:29:59 2025 +0200 @@ -129,13 +129,13 @@ logDataSize = serializedLogData.size(); } - OrthancPluginRecordAuditLog(OrthancPlugins::GetGlobalContext(), - userId.c_str(), - resourceType, - resourceId.c_str(), - action.c_str(), - logDataPtr, - logDataSize); + OrthancPluginAuditLog(OrthancPlugins::GetGlobalContext(), + userId.c_str(), + resourceType, + resourceId.c_str(), + action.c_str(), + logDataPtr, + logDataSize); } static void RecordAuditLog(const AuditLog& auditLog) @@ -1279,9 +1279,9 @@ OrthancPlugins::RestApiClient coreApi(url, request); - if (request->method == OrthancPluginHttpMethod_Get && coreApi.Execute()) + if (!enableAuditLogs_ || request->method == OrthancPluginHttpMethod_Get) { - coreApi.ForwardAnswer(context, output); + coreApi.ExecuteAndForwardAnswer(context, output); return; } else