Skip to content

Commit

Permalink
log matching permission
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Jun 11, 2024
1 parent 02019e7 commit ac5e33c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions radicale/rights/from_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ def authorization(self, user: str, path: str) -> str:
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)
Expand Down

0 comments on commit ac5e33c

Please sign in to comment.