Skip to content

V14: Add additional validation around manipulating groups#15834

Merged
bergmania merged 6 commits intov14/devfrom
v14/feature/additional-usergroup-validation
Mar 7, 2024
Merged

V14: Add additional validation around manipulating groups#15834
bergmania merged 6 commits intov14/devfrom
v14/feature/additional-usergroup-validation

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
@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