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)