sharing/collection_list: rename function

This commit is contained in:
Peter Bieringer
2026-03-14 17:24:55 +01:00
parent c1b46a8b7a
commit a0733a83e3
2 changed files with 6 additions and 6 deletions

View File

@@ -56,9 +56,9 @@ class ApplicationPartMkcalendar(ApplicationBase):
return httputils.BAD_REQUEST
if self._sharing._enabled:
# check for shared collections (all)
collections_share_map = self._sharing.sharing_collection_map_list()
if collections_share_map:
for share in collections_share_map:
collections_share_list = self._sharing.sharing_collection_list()
if collections_share_list:
for share in collections_share_list:
if share['PathOrToken'] == path:
return httputils.CONFLICT
# TODO: use this?

View File

@@ -63,9 +63,9 @@ class ApplicationPartMkcol(ApplicationBase):
return httputils.NOT_ALLOWED
if self._sharing._enabled:
# check for shared collections (all)
collections_share_map = self._sharing.sharing_collection_map_list()
if collections_share_map:
for share in collections_share_map:
collections_share_list = self._sharing.sharing_collection_list()
if collections_share_list:
for share in collections_share_list:
if share['PathOrToken'] == path:
return httputils.CONFLICT
with self._storage.acquire_lock("w", user, path=path, request="MKCOL"):