sharing: fix group separator

This commit is contained in:
Peter Bieringer
2026-07-19 11:05:43 +02:00
parent 1ff4c6ca03
commit f6f965f07a

View File

@@ -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: