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