Skip to content
Snippets Groups Projects
Commit c16fe3b2 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Fix StaticUserManager hashability and all_groups

parent c7eac74c
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ class StaticUserManager:
for (username, password, groups) in users
}
self.group_map = {
username: groups
username: tuple(groups)
for (username, password, groups) in users
}
self.obsolete = obsolete
......@@ -109,7 +109,10 @@ class StaticUserManager:
yield from self.group_map[username]
def all_groups(self, username, password):
yield from list(set(group for group in self.group_map.values()))
yield from list(set(
group
for groups in self.group_map.values()
for group in groups))
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment