From f6f965f07a77dcef59cfa5de9eb0b69aee95685a Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sun, 19 Jul 2026 11:05:43 +0200 Subject: [PATCH] sharing: fix group separator --- radicale/sharing/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/sharing/__init__.py b/radicale/sharing/__init__.py index f5d3680d..b5a962eb 100644 --- a/radicale/sharing/__init__.py +++ b/radicale/sharing/__init__.py @@ -1345,7 +1345,7 @@ class BaseSharing: logger.warning(api_info + ": PathMapped=%r change of Conversion %r -> %r is not supported", PathMapped, share['Conversion'], Conversion) return httputils.bad_request("Change of conversion is not supported") - if User is not None and (User.startswith('!') or User.startswith('@')): + if (User is not None and (User.startswith(SHARING_SEPARATOR_GROUP) or User.startswith(SHARING_SEPARATOR_REALM))) or (share['User'].startswith(SHARING_SEPARATOR_GROUP) or share['User'].startswith(SHARING_SEPARATOR_REALM)): # enforce user permissions for groups if Permissions is not None: if "e" not in Permissions: