diff --git a/radicale/sharing/__init__.py b/radicale/sharing/__init__.py index 4e1ddd15..66f30e77 100644 --- a/radicale/sharing/__init__.py +++ b/radicale/sharing/__init__.py @@ -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