[KEYCLOAK-14282] Fix missing flag for enabled and exact flag

This commit is contained in:
Plamen Kostov 2020-06-27 10:21:41 +03:00 committed by Pedro Igor
parent 914b226d11
commit f639cc82b7

View file

@ -229,7 +229,7 @@ public class UsersResource {
}
return searchForUser(attributes, realm, userPermissionEvaluator, briefRepresentation, firstResult, maxResults, false);
}
} else if (last != null || first != null || email != null || username != null) {
} else if (last != null || first != null || email != null || username != null || enabled != null || exact != null) {
Map<String, String> attributes = new HashMap<>();
if (last != null) {
attributes.put(UserModel.LAST_NAME, last);