fixed ##193

This commit is contained in:
Tim Gröger 2020-03-04 21:38:21 +01:00
parent abe081c589
commit e0c3581a4c
1 changed files with 5 additions and 3 deletions

View File

@ -33,8 +33,10 @@ class AccesTokenController(metaclass=Singleton):
def checkBar(self, user): def checkBar(self, user):
if (userController.checkBarUser(user)): if (userController.checkBarUser(user)):
if BAR not in user.group:
user.group.append(BAR) user.group.append(BAR)
elif BAR in user.group: else:
while BAR in user.group:
user.group.remove(BAR) user.group.remove(BAR)
def validateAccessToken(self, token, group): def validateAccessToken(self, token, group):