Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V14: Add additional validation around manipulating groups #15834

Merged
merged 6 commits into from
Mar 7, 2024

Conversation

nikolajlauridsen
Copy link
Contributor

Adds additional validation around manipulating user groups, more specifically it ensures that the admin group is never left empty, since this would mean that no user could ever be added to the admin group again.

Most of this is pretty run-of-the-mill, however, there was a little snafu with the UpdateUserGroupsUserController, since this more or less acts more like a UserGroup controller, I've left a clarifying comment in the top of the file.

Testing

Ensure that you are not allowed to remove all users from the admin group.

Copy link
Member

@bergmania bergmania left a comment

Choose a reason for hiding this comment

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

Tests out good

@bergmania bergmania merged commit eca13ea into v14/dev Mar 7, 2024
11 of 15 checks passed
@bergmania bergmania deleted the v14/feature/additional-usergroup-validation branch March 7, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants