mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-13 18:50:53 +00:00
Skip group collection match when groups are not used
This commit is contained in:
parent
ff5fae1663
commit
916c9db3c8
4 changed files with 19 additions and 7 deletions
|
@ -84,7 +84,8 @@ class Rights(rights.BaseRights):
|
|||
collection_pattern.format(
|
||||
*(re.escape(s) for s in user_match.groups()),
|
||||
user=escaped_user), sane_path)
|
||||
group_collection_match = re.fullmatch(collection_pattern.format(user=escaped_user), sane_path)
|
||||
group_collection_match = group_match and re.fullmatch(
|
||||
collection_pattern.format(user=escaped_user), sane_path)
|
||||
except Exception as e:
|
||||
raise RuntimeError("Error in section %r of rights file %r: "
|
||||
"%s" % (section, self._filename, e)) from e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue