diff --git a/source/java/org/alfresco/repo/security/authentication/AbstractAuthenticationService.java b/source/java/org/alfresco/repo/security/authentication/AbstractAuthenticationService.java index 560cea6c83..1bb8e750a1 100644 --- a/source/java/org/alfresco/repo/security/authentication/AbstractAuthenticationService.java +++ b/source/java/org/alfresco/repo/security/authentication/AbstractAuthenticationService.java @@ -53,7 +53,7 @@ public abstract class AbstractAuthenticationService implements AuthenticationSer Integer maxUsers = (Integer) sysAdminParams.getMaxUsers(); - if ((maxUsers != null) && (maxUsers != -1) && (getUsersWithTickets(true).size() >= maxUsers)) + if ((maxUsers != null) && (maxUsers > -1) && (getUsersWithTickets(true).size() > maxUsers)) { throw new AuthenticationMaxUsersException("Max users exceeded: " + maxUsers); }