Pass user to sharing/delete API endpoint

In the recommended storage hook for git integration no user gets passed when deleting a shared collection. The user is "Anonymus". This passes the owner name to the storage hook.
This commit is contained in:
Nils Brederlow
2026-04-07 13:14:46 +02:00
committed by GitHub
parent b88bac0523
commit e85e87e423

View File

@@ -1223,7 +1223,8 @@ class BaseSharing:
if user == share['Owner']:
result = self.database_delete_sharing(
ShareType=ShareType,
PathOrToken=PathOrToken) # verification above that it is not None
PathOrToken=PathOrToken,
User=share['Owner']) # verification above that it is not None
else:
# only owner is permitted to delete a share
logger.warning(api_info + ": %r not permitted for user %r", PathOrToken, user)