mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged HEAD (5.1) to 5.1.N (5.1.1)
114666 sglover: ACE-3542 "server.maxusers count does not work correctly - TicketCountAll can be greater MaxUsers" git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@114851 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user