From e85e87e4230af2f89d762f8930e0925a0e92b784 Mon Sep 17 00:00:00 2001 From: Nils Brederlow <62596379+dingodoppelt@users.noreply.github.com> Date: Tue, 7 Apr 2026 13:14:46 +0200 Subject: [PATCH] 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. --- radicale/sharing/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/sharing/__init__.py b/radicale/sharing/__init__.py index 43d4da94..7685b334 100644 --- a/radicale/sharing/__init__.py +++ b/radicale/sharing/__init__.py @@ -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)