Skip to content

Commit

Permalink
Merge pull request #20 from dignajar/bugfix/groups_cache
Browse files Browse the repository at this point in the history
fix: Add logic to append groups to group cache
  • Loading branch information
dignajar authored Jun 7, 2021
2 parents 6b24bac + f801dcf commit 1c00212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
'''
Expand Down

0 comments on commit 1c00212

Please sign in to comment.