Closed Extheoisah closed 3 months ago
I tested this code locally but connected to the staging db. The updated swagger looks good, I tested all the User endpoints and I was able to change the permissions of a user to "evaluator".
I didn't test the endpoints using an "evaluator" role to verify that the permissions work as expected.
To test the evaluator role:
This pr adds a new role to the user permissions enum. It closes https://github.com/bitcointranscripts/transcription-review-backend/issues/290
This PR also cleans up the user section of the swagger docs since the code touches the user route. Previously, the docs didn't account for the JWT bearer token appended to the headers and the signing route doesn't work in Swagger due to the absence of an API key implementation.