sharing: reorg/log

This commit is contained in:
Peter Bieringer
2026-03-09 17:55:50 +01:00
parent cb80a13d39
commit e5584c8f6c

View File

@@ -533,12 +533,14 @@ class BaseSharing:
return httputils.NOT_FOUND
# check for enabled ShareTypes
if not self.sharing_collection_by_map and ShareType == "map":
# API "map" is not enabled
return httputils.NOT_FOUND
if not self.sharing_collection_by_token and ShareType == "token":
# API "token" is not enabled
logger.warning(api_info + ": not enabled by config (collection_by_token)")
return httputils.NOT_FOUND
if not self.sharing_collection_by_map and ShareType == "map":
# API "map" is not enabled
logger.warning(api_info + ": not enabled by config (collection_by_map)")
return httputils.NOT_FOUND
# check for valid API hooks