diff --git a/radicale/rights/regex.py b/radicale/rights/regex.py index 21a828b..200731a 100644 --- a/radicale/rights/regex.py +++ b/radicale/rights/regex.py @@ -87,7 +87,8 @@ def _read_from_sections(user, collection, permission): log.LOGGER.debug("Section '%s' matches" % section) if permission in regex.get(section, "permission"): return True - log.LOGGER.debug("Section '%s' does not match" % section) + else: + log.LOGGER.debug("Section '%s' does not match" % section) return False