Skip to content

Conversation

@Sebastianmueller22
Copy link

Summary

Just a simple check if the limit is exceeded it adds a plus. Tested with a system with that many users in a subgroup and it showed up correctly.

Resolves #54878

Checklist

Signed-off-by: Sebastian Mueller <muellersebastian@mail.com>
Signed-off-by: Sebastian Mueller <muellersebastian@mail.com>
@Sebastianmueller22 Sebastianmueller22 requested a review from a team as a code owner January 22, 2026 16:21
@Sebastianmueller22 Sebastianmueller22 requested review from ArtificialOwl, CarlSchwan, icewind1991 and salmart-dev and removed request for a team January 22, 2026 16:21


// display user count with a plus appended, if limit is exceeded
$userCount = ($userCount < self::COUNT_LIMIT_FOR_SUBADMINS) ? $userCount : self::COUNT_LIMIT_FOR_SUBADMINS . '+';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will change the return type in the frontend, not sure what are the consequence of that

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't produce any issue in my test. I looked for usages and it seems to be handled in a type agnostic way. I did it in oder to not have the limit hard coded in the frontend as well.

I could alternatively send the limit with the response and make the check in the frontend. Should I do that instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Display to "999+" when users limit is reached in Accounts

2 participants