From 5ed60ce09d9e7dd9ec7310e36c7405e6821d2b1f Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Tue, 2 Aug 2016 15:43:31 +0200 Subject: [PATCH] Always return current-user-principal --- radicale/xmlutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 4337e38..0915f5f 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -614,9 +614,9 @@ def _propfind_response(path, item, props, user, write=False): element.append(comp) else: is404 = True - elif tag == _tag("D", "current-user-principal") and user: + elif tag == _tag("D", "current-user-principal"): tag = ET.Element(_tag("D", "href")) - tag.text = _href(collection, "/%s/" % user) + tag.text = _href(collection, ("/%s/" % user) if user else "/") element.append(tag) elif tag == _tag("D", "current-user-privilege-set"): privilege = ET.Element(_tag("D", "privilege"))