mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-08 21:18:00 +03:00
Replaced "len" with a more proper way (using hasValidGroups method)
This commit is contained in:
parent
f8c7026fcc
commit
c9da25bed8
@ -94,7 +94,7 @@ class IPAuth(Authenticator):
|
||||
|
||||
def internalAuthenticate(self,username, credentials, groupsManager):
|
||||
self.getGroups(username, groupsManager)
|
||||
if len(groupsManager.getValidGroups()) > 0 and self.dbAuthenticator().isValidUser(username, True):
|
||||
if groupsManager.hasValidGroups() and self.dbAuthenticator().isValidUser(username, True):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user