From ac5e33c723ff0a378a0139008e0b403026d29cd6 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Tue, 11 Jun 2024 13:33:34 +0200 Subject: [PATCH] log matching permission --- radicale/rights/from_file.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/radicale/rights/from_file.py b/radicale/rights/from_file.py index 01fa2fb7..3b8ede05 100644 --- a/radicale/rights/from_file.py +++ b/radicale/rights/from_file.py @@ -75,10 +75,11 @@ class Rights(rights.BaseRights): raise RuntimeError("Error in section %r of rights file %r: " "%s" % (section, self._filename, e)) from e if user_match and collection_match: - logger.debug("Rule %r:%r matches %r:%r from section %r", + permission = rights_config.get(section, "permissions") + logger.debug("Rule %r:%r matches %r:%r from section %r permission %r", user, sane_path, user_pattern, - collection_pattern, section) - return rights_config.get(section, "permissions") + collection_pattern, section, permission) + return permission logger.debug("Rule %r:%r doesn't match %r:%r from section %r", user, sane_path, user_pattern, collection_pattern, section)