Apply suggestions of mypy
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user