diff OrthancServer/Sources/ServerEnumerations.cpp @ 5058:d4e5ca0c9307

Fix the "Never" option of the "StorageAccessOnFind" that was sill accessing files (bug introduced in 1.11.0)
author Alain Mazy <am@osimis.io>
date Wed, 03 Aug 2022 10:49:50 +0200
parents 877bc3b96476
children e95fadefeb72
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerEnumerations.cpp	Tue Aug 02 11:38:31 2022 +0200
+++ b/OrthancServer/Sources/ServerEnumerations.cpp	Wed Aug 03 10:49:50 2022 +0200
@@ -208,6 +208,15 @@
     }    
   }
 
+  bool IsStorageAccessAllowedForAnswers(FindStorageAccessMode mode)
+  {
+    return mode != FindStorageAccessMode_DatabaseOnly;
+  }
+
+  bool IsStorageAccessAllowedForLookup(FindStorageAccessMode mode)
+  {
+    return mode == FindStorageAccessMode_DiskOnLookupAndAnswer;
+  }
 
   BuiltinDecoderTranscoderOrder StringToBuiltinDecoderTranscoderOrder(const std::string& value)
   {