From f801dcf0b542d6dfed7c1d349d72104a8036ce41 Mon Sep 17 00:00:00 2001 From: Rodrigo Echaide Date: Mon, 7 Jun 2021 11:28:49 +0200 Subject: [PATCH] fix: Add logic to append groups to group cache --- files/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/cache.py b/files/cache.py index f584289..d3216d9 100644 --- a/files/cache.py +++ b/files/cache.py @@ -42,7 +42,7 @@ def addGroups(self, username:str, matchedGroups:list): ''' if username in self.cache: self.logs.info({'message':'Adding groups to the cache.', 'username': username, 'matchedGroups': ','.join(matchedGroups)}) - self.cache[username]['matchedGroups'] = matchedGroups + self.cache[username]['matchedGroups'] = list(set(self.cache[username]['matchedGroups'] + matchedGroups)) def validateUser(self, username:str, password:str) -> bool: '''