sharing/collection_list: rename function
This commit is contained in:
@@ -56,9 +56,9 @@ class ApplicationPartMkcalendar(ApplicationBase):
|
|||||||
return httputils.BAD_REQUEST
|
return httputils.BAD_REQUEST
|
||||||
if self._sharing._enabled:
|
if self._sharing._enabled:
|
||||||
# check for shared collections (all)
|
# check for shared collections (all)
|
||||||
collections_share_map = self._sharing.sharing_collection_map_list()
|
collections_share_list = self._sharing.sharing_collection_list()
|
||||||
if collections_share_map:
|
if collections_share_list:
|
||||||
for share in collections_share_map:
|
for share in collections_share_list:
|
||||||
if share['PathOrToken'] == path:
|
if share['PathOrToken'] == path:
|
||||||
return httputils.CONFLICT
|
return httputils.CONFLICT
|
||||||
# TODO: use this?
|
# TODO: use this?
|
||||||
|
|||||||
@@ -63,9 +63,9 @@ class ApplicationPartMkcol(ApplicationBase):
|
|||||||
return httputils.NOT_ALLOWED
|
return httputils.NOT_ALLOWED
|
||||||
if self._sharing._enabled:
|
if self._sharing._enabled:
|
||||||
# check for shared collections (all)
|
# check for shared collections (all)
|
||||||
collections_share_map = self._sharing.sharing_collection_map_list()
|
collections_share_list = self._sharing.sharing_collection_list()
|
||||||
if collections_share_map:
|
if collections_share_list:
|
||||||
for share in collections_share_map:
|
for share in collections_share_list:
|
||||||
if share['PathOrToken'] == path:
|
if share['PathOrToken'] == path:
|
||||||
return httputils.CONFLICT
|
return httputils.CONFLICT
|
||||||
with self._storage.acquire_lock("w", user, path=path, request="MKCOL"):
|
with self._storage.acquire_lock("w", user, path=path, request="MKCOL"):
|
||||||
|
|||||||
Reference in New Issue
Block a user