Commit d4081353 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Do not duplicate groups in user manager

ref #160
parent f156107e
......@@ -43,7 +43,7 @@ class UserManager:
def login(self, username, password, permanent=False):
for backend in self.backends:
if backend.authenticate(username, password):
groups = backend.groups(username, password)
groups = sorted(list(set(backend.groups(username, password))))
return User(username, groups, obsolete=backend.obsolete, permanent=permanent)
return None
Supports Markdown
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