fixed ##193
This commit is contained in:
parent
abe081c589
commit
e0c3581a4c
|
@ -33,9 +33,11 @@ class AccesTokenController(metaclass=Singleton):
|
||||||
|
|
||||||
def checkBar(self, user):
|
def checkBar(self, user):
|
||||||
if (userController.checkBarUser(user)):
|
if (userController.checkBarUser(user)):
|
||||||
user.group.append(BAR)
|
if BAR not in user.group:
|
||||||
elif BAR in user.group:
|
user.group.append(BAR)
|
||||||
user.group.remove(BAR)
|
else:
|
||||||
|
while BAR in user.group:
|
||||||
|
user.group.remove(BAR)
|
||||||
|
|
||||||
def validateAccessToken(self, token, group):
|
def validateAccessToken(self, token, group):
|
||||||
""" Verify Accestoken
|
""" Verify Accestoken
|
||||||
|
|
Loading…
Reference in New Issue