mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-05 06:07:35 +03:00
Check that item is a collection
This commit is contained in:
parent
cf4a6ef749
commit
c29fd1ca61
1 changed files with 1 additions and 1 deletions
|
@ -581,7 +581,7 @@ def _propfind_response(path, item, props, user, write=False):
|
|||
_tag("D", "principal-URL"),
|
||||
_tag("CR", "addressbook-home-set"),
|
||||
_tag("C", "calendar-home-set")) and
|
||||
collection.is_principal):
|
||||
collection.is_principal and is_collection):
|
||||
tag = ET.Element(_tag("D", "href"))
|
||||
tag.text = _href(collection, path)
|
||||
element.append(tag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue