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

Merge branch 'master' of git.fsmpi.rwth-aachen.de:protokollsystem/common-web

parents 8f012082 c3a8dbca
Branches
No related tags found
No related merge requests found
......@@ -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(
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