From 658cfef7ed42642764b80505fb40401183d9992e Mon Sep 17 00:00:00 2001 From: Nils Brederlow <62596379+dingodoppelt@users.noreply.github.com> Date: Tue, 7 Apr 2026 13:22:40 +0200 Subject: [PATCH] Add User parameter to database_delete_sharing method In line with the changes made to files.py. Passes the user name as an additional argument so a storage hook can know who deleted a share --- radicale/sharing/csv.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/radicale/sharing/csv.py b/radicale/sharing/csv.py index 3c3d3c18..ccfd448c 100644 --- a/radicale/sharing/csv.py +++ b/radicale/sharing/csv.py @@ -371,12 +371,13 @@ 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) - with self._storage.acquire_lock("w", path=self._sharing_db_file): + with self._storage.acquire_lock("w", User, path=self._sharing_db_file): # lookup token found = False index = 0