hngprojects / hng_boilerplate_csharp_web

https://api-csharp.boilerplate.hng.tech
Apache License 2.0
79 stars 42 forks source link

Update Permissions for User Roles in the API #351

Open Olasam-web opened 3 weeks ago

Olasam-web commented 3 weeks ago

We need to update the permissions for user roles within the API. Specifically, the permissions for the “Editor” role should be modified to include access to the new “Content Management” endpoints that were recently added.

Acceptance Criteria 1 The “Editor” role must have the following additional permissions: • Access to POST /content/create • Access to PUT /content/update • Access to DELETE /content/remove

  1. Ensure that these permissions do not interfere with existing permissions for the “Editor” role.
  2. Update the API documentation to reflect the changes in the permissions for the “Editor” role.
  3. Verify that the changes are covered by unit tests, ensuring that the “Editor” role can only access the specified endpoints.