do not offer version on particular item (relates to https://github.com/Kozea/Radicale/pull/2116)

This commit is contained in:
Peter Bieringer
2026-05-04 21:35:12 +02:00
parent 3e284a5c30
commit b397c94ee5

View File

@@ -168,7 +168,7 @@ def xml_propfind_response(
props = []
# Should list all properties that can be retrieved by the code below
props.append(xmlutils.make_clark("D:principal-collection-set"))
if user:
if user and is_collection:
props.append(xmlutils.make_clark("RADICALE:version"))
props.append(xmlutils.make_clark("D:current-user-principal"))
props.append(xmlutils.make_clark("D:current-user-privilege-set"))