.BANCHO. .FIX. Fix restricted users not able to log in
This commit is contained in:
parent
4ee1dd2a03
commit
d957356f67
|
@ -50,8 +50,6 @@ class token:
|
||||||
self.privileges = userHelper.getPrivileges(self.userID)
|
self.privileges = userHelper.getPrivileges(self.userID)
|
||||||
self.admin = userHelper.isInPrivilegeGroup(self.userID, "developer") or userHelper.isInPrivilegeGroup(self.userID, "community manager")
|
self.admin = userHelper.isInPrivilegeGroup(self.userID, "developer") or userHelper.isInPrivilegeGroup(self.userID, "community manager")
|
||||||
self.restricted = userHelper.isRestricted(self.userID)
|
self.restricted = userHelper.isRestricted(self.userID)
|
||||||
if self.restricted == True:
|
|
||||||
self.setRestricted()
|
|
||||||
self.loginTime = int(time.time())
|
self.loginTime = int(time.time())
|
||||||
self.pingTime = self.loginTime
|
self.pingTime = self.loginTime
|
||||||
self.lock = threading.Lock() # Sync primitive
|
self.lock = threading.Lock() # Sync primitive
|
||||||
|
@ -101,6 +99,10 @@ class token:
|
||||||
if ip != "":
|
if ip != "":
|
||||||
userHelper.saveBanchoSession(self.userID, self.ip)
|
userHelper.saveBanchoSession(self.userID, self.ip)
|
||||||
|
|
||||||
|
# If we are restricted, send message from FokaBot to user
|
||||||
|
if self.restricted == True:
|
||||||
|
self.setRestricted()
|
||||||
|
|
||||||
|
|
||||||
def enqueue(self, __bytes):
|
def enqueue(self, __bytes):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user