Commit 93d19c52 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Merge branch 'master' of

parents 8f012082 c3a8dbca
......@@ -93,7 +93,7 @@ class StaticUserManager:
for (username, password, groups) in users
self.group_map = {
username: groups
username: tuple(groups)
for (username, password, groups) in users
......@@ -113,7 +113,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(
for groups in self.group_map.values()
for group in groups))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment