From 409a1af918368973e73ebe7fc4e214c36b0aa02d Mon Sep 17 00:00:00 2001 From: Nils Brederlow <62596379+dingodoppelt@users.noreply.github.com> Date: Tue, 7 Apr 2026 13:16:39 +0200 Subject: [PATCH] Add User parameter to database_delete_sharing method ...so the storage hook knows who deleted the share --- radicale/sharing/files.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/radicale/sharing/files.py b/radicale/sharing/files.py index 6c9a87a5..06b999d1 100644 --- a/radicale/sharing/files.py +++ b/radicale/sharing/files.py @@ -362,7 +362,8 @@ class Sharing(sharing.BaseSharing): def database_delete_sharing(self, ShareType: str, - PathOrToken: str) -> dict: + PathOrToken: str, + User: str) -> dict: """ delete sharing """ if logger.isEnabledFor(logging.DEBUG): logger.debug("TRACE/sharing/%s/delete: PathOrToken=%r", ShareType, PathOrToken) @@ -373,7 +374,7 @@ class Sharing(sharing.BaseSharing): return {"status": "not-found"} # open writable so storage hook triggers - with self._storage.acquire_lock("w", path=sharing_config_file): + with self._storage.acquire_lock("w", User, path=sharing_config_file): # read file with open(sharing_config_file, "rb") as fb: (version, row) = pickle.load(fb)