Skip to content

In stfc mode if a user has the user role and 1 other role that role cannot be removed #1610

Description

@TCMeldrum

This is due to how we are handeling role assigments in the stfc user datasource. When we remove a role from them the frontend sends a request saying this users new roles should be [user]. The stfcuserdatasource then notices that the user role comes from uows removes that from the array, thinks there are no new roles to give that user so does not pass the empty array onto the postgress datasource.
https://github.com/user-attachments/assets/e6074999-ceec-4117-921f-54794f2f3ee9

Metadata

Metadata

Assignees

Labels

area: uop/stfcAn issue relating to the STFC user office project.

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions