sharing/bday: bugfix
This commit is contained in:
@@ -545,7 +545,7 @@ class ApplicationPartPropfind(ApplicationBase):
|
|||||||
# put item back
|
# put item back
|
||||||
items_iter = itertools.chain([item], items_iter)
|
items_iter = itertools.chain([item], items_iter)
|
||||||
for item, permission in list(self._collect_allowed_items(items_iter, user)):
|
for item, permission in list(self._collect_allowed_items(items_iter, user)):
|
||||||
if share:
|
if self._sharing._enabled and share:
|
||||||
if share['ShareType'] == "bday" and not isinstance(item, storage.BaseCollection):
|
if share['ShareType'] == "bday" and not isinstance(item, storage.BaseCollection):
|
||||||
if not item.convert_vcf_to_ics():
|
if not item.convert_vcf_to_ics():
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -4360,7 +4360,7 @@ permissions: RrWw""")
|
|||||||
response = responses[path_shared_r + "contact2-with-bday.ics"]
|
response = responses[path_shared_r + "contact2-with-bday.ics"]
|
||||||
assert not isinstance(response, int)
|
assert not isinstance(response, int)
|
||||||
status, prop = response["D:getcontenttype"]
|
status, prop = response["D:getcontenttype"]
|
||||||
assert "vcard" not in prop.text
|
assert "text/calendar" in str(prop.text)
|
||||||
|
|
||||||
def test_sharing_api_bday_complex(self) -> None:
|
def test_sharing_api_bday_complex(self) -> None:
|
||||||
"""share-by-map API usage tests related to partial overlay."""
|
"""share-by-map API usage tests related to partial overlay."""
|
||||||
|
|||||||
Reference in New Issue
Block a user