Skip to content

Conversation

@ardelato
Copy link
Collaborator

Description

We end up with an error when we try to change the role of a user who still has not been assigned a group.

2025-06-26_10-28-43.mp4

CR Notes

This was reported by Amber when she tried to change the role for new users on the live site.

QA Notes

We should no longer get an error when we try to update another user's role.

Updated the UserController to ensure that the assigned_groups input defaults
to an empty array if not provided. This change prevents potential errors
when changing a user's role when said user has still no assigned groups.
@ardelato
Copy link
Collaborator Author

QA 👍 Confirmed no errors occurred in the test cluster

2025-06-26_10-44-40.mp4

Copy link
Member

@mlahargou mlahargou left a comment

Choose a reason for hiding this comment

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

CR 📱

@ardelato ardelato merged commit 213fa51 into hermes Jul 1, 2025
@ardelato ardelato deleted the fix-edit-profile-settings branch July 1, 2025 18:34
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.

3 participants