-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Steps to reproduce
- As an administrator navigate to the manage users page
- For any user in the table, click on the plus icon to under roles

- Fill in role information and attempt to add the role
Error description
The following notification will be shown when attempting to add a role:

The cause of this is a 404 not found error for the endpoint.
Possible fix
There is a /api/users/:variable endpoint for adding multiple roles when variable = one of the role names. The endpoint also adds a role to a single user if variable is a user ID. Currently, the frontend for adding roles tries to send data to the /api/users/:userId/:role endpoint, which does not match. Removing /:role would match the endpoint, but changes need to be made to the request body being sent for it to work.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working