mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Apply suggestions of mypy
This commit is contained in:
parent
d75b071fec
commit
e05fbeb950
4 changed files with 8 additions and 6 deletions
|
@ -71,7 +71,7 @@ class Rights(rights.BaseRights):
|
|||
collection_pattern = rights_config.get(section, "collection")
|
||||
allowed_groups = rights_config.get(section, "groups", fallback="").split(",")
|
||||
try:
|
||||
group_match = self._user_groups.intersection(allowed_groups) > 0
|
||||
group_match = len(self._user_groups.intersection(allowed_groups)) > 0
|
||||
except Exception:
|
||||
pass
|
||||
# Use empty format() for harmonized handling of curly braces
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue