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

Fix static user backend

parent d4081353
Branches
No related tags found
No related merge requests found
...@@ -143,7 +143,7 @@ class StaticUserManager: ...@@ -143,7 +143,7 @@ class StaticUserManager:
username: password username: password
for (username, password, groups) in users for (username, password, groups) in users
} }
self.groups = { self.group_map = {
username: groups username: groups
for (username, password, groups) in users for (username, password, groups) in users
} }
...@@ -154,8 +154,8 @@ class StaticUserManager: ...@@ -154,8 +154,8 @@ class StaticUserManager:
and self.passwords[username] == password) and self.passwords[username] == password)
def groups(self, username, password=None): def groups(self, username, password=None):
if username in self.groups: if username in self.group_map:
yield from self.groups[username] yield from self.group_map[username]
def all_groups(self): def all_groups(self):
yield from list(set(group for group in groups.values())) yield from list(set(group for group in groups.values()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment