Fix ClientTracker.isAdmin()
This commit is contained in:
parent
338d2cf981
commit
db078c6e0d
|
@ -83,8 +83,8 @@ class ClientTracker(object):
|
|||
def isBlocked(self, clientId):
|
||||
return clientId in self._block
|
||||
|
||||
def isAdmin(self, email):
|
||||
return email in self._admin
|
||||
def isAdmin(self, clientId):
|
||||
return clientId in self._admin
|
||||
|
||||
def login(self, client, status=0):
|
||||
clientId = client.user.ID
|
||||
|
|
|
@ -115,7 +115,7 @@ class FRNServer(BufferingLineReceiver, TimeoutMixin):
|
|||
if self.role == 'OK':
|
||||
if self.user.EA == self.factory.serverAuth.OW:
|
||||
self.role = 'OWNER'
|
||||
elif self.factory.tracker.isAdmin(self.user.EA):
|
||||
elif self.factory.tracker.isAdmin(self.user.ID):
|
||||
self.role = 'ADMIN'
|
||||
if versions.server > 2009004:
|
||||
self.waitingKey = True
|
||||
|
|
Loading…
Reference in New Issue