From 6c9359ab988f3db3289ec3440f8302aff3c07fbe Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Mon, 30 Mar 2026 06:02:45 +0200 Subject: [PATCH] sharing/info: add overlay status/support --- radicale/sharing/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radicale/sharing/__init__.py b/radicale/sharing/__init__.py index 9f75a017..6111215e 100644 --- a/radicale/sharing/__init__.py +++ b/radicale/sharing/__init__.py @@ -117,6 +117,8 @@ API_TYPES_V1: dict[str, type] = { "Conversion": str, "Actions": dict, "SupportedConversions": list, + "PermittedPropertiesOverlay": bool, + "SupportedPropertiesOverlay": list, } @@ -1261,8 +1263,10 @@ class BaseSharing: if ShareType in ["all", "token"]: answer['FeatureEnabledCollectionByToken'] = self.sharing_collection_by_token answer['PermittedCreateCollectionByToken'] = self.permit_create_token - if ShareType in ["all", "map", "token"]: + if ShareType in SHARE_TYPES: answer['SupportedConversions'] = CONVERSIONS_WHITELIST + answer['PermittedPropertiesOverlay'] = self.permit_properties_overlay + answer['SupportedPropertiesOverlay'] = OVERLAY_PROPERTIES_WHITELIST # action: TOGGLE elif action in API_SHARE_TOGGLES_V1: