1
0
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:
Adolfo Gómez 2013-03-20 08:23:54 +00:00
parent f8c7026fcc
commit c9da25bed8

View File

@ -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