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

Handle the case where all roles are removed from a user #1194

Merged
merged 1 commit into from
Feb 12, 2022

Conversation

avsdev-cw
Copy link
Contributor

When the last role is removed from a user an exception occurs (BadRequest). It is feasible for a user to not have any roles IMO so this provides a default value in the case where all roles are removed (ie only the csrf is sent in the PUT request). This is a bit of a special case because roles are an array and not a single value (which could be empty) unlike other cases.

@lcharette lcharette changed the base branch from master to hotfix February 12, 2022 17:51
@lcharette lcharette merged commit 1992067 into userfrosting:hotfix Feb 12, 2022
@lcharette lcharette added this to the 4.6.4 milestone Feb 12, 2022
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.

2 participants