sharing: extend comments

This commit is contained in:
Peter Bieringer
2026-08-01 08:45:38 +02:00
parent 43eea27b7e
commit c65b8fee09

View File

@@ -628,6 +628,7 @@ class BaseSharing:
""" returning dict with PathMapped, Owner, Permissions or None if invalid""" """ returning dict with PathMapped, Owner, Permissions or None if invalid"""
if self.sharing_collection_by_map: if self.sharing_collection_by_map:
logger.trace("sharing/map/resolver: check path: %r", path) logger.trace("sharing/map/resolver: check path: %r", path)
# check collection path
result = self.database_get_sharing( result = self.database_get_sharing(
ShareType="map", ShareType="map",
PathOrToken=path, PathOrToken=path,
@@ -635,7 +636,7 @@ class BaseSharing:
User=user) User=user)
if not result: if not result:
# fallback to parent path # assume item path, fallback to parent path
parent_path = pathutils.parent_path(path) parent_path = pathutils.parent_path(path)
logger.trace("sharing/map/resolver: check parent path: %r", parent_path) logger.trace("sharing/map/resolver: check parent path: %r", parent_path)
result = self.database_get_sharing( result = self.database_get_sharing(