Skip to content

Commit

Permalink
Add a new check for maximum items per page param
Browse files Browse the repository at this point in the history
  • Loading branch information
sandushi committed Jul 31, 2024
1 parent 85072e1 commit 281b63c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6451,7 +6451,7 @@ private String maskIfRequired(String value) {
private int validateCountParameter(Integer count) {

int maximumItemsPerPage = IdentityUtil.getMaximumItemPerPage();
if (count > maximumItemsPerPage) {
if (maximumItemsPerPage != -1 && count > maximumItemsPerPage) {
if (log.isDebugEnabled()) {
log.debug(String.format("Given limit exceeds the maximum limit. Therefore the limit is set to %s.",
maximumItemsPerPage));
Expand Down

0 comments on commit 281b63c

Please sign in to comment.