From 64aa924270f53b2d920700ddf66ff14e1b6b98c5 Mon Sep 17 00:00:00 2001 From: BibaBot Date: Mon, 16 Mar 2026 19:09:01 +0000 Subject: [PATCH] cleanup: remove temporary files --- NEW_ISSUE.md | 20 -------------------- issue_1234.md | 19 ------------------- 2 files changed, 39 deletions(-) delete mode 100644 NEW_ISSUE.md delete mode 100644 issue_1234.md diff --git a/NEW_ISSUE.md b/NEW_ISSUE.md deleted file mode 100644 index 46400dd..0000000 --- a/NEW_ISSUE.md +++ /dev/null @@ -1,20 +0,0 @@ -# Implement comprehensive RBAC documentation and tests - -## Description -The project needs comprehensive documentation and tests for the role-based access control (RBAC) system that has been implemented. This includes: - -1. Detailed documentation of the roles and permissions in `docs/roles-and-permissions.md` -2. Tests for the middleware in `backend/middleware/role.middleware.js` -3. Integration tests for routes that use the middleware - -## Acceptance Criteria -- [ ] Documentation of all roles and their permissions is complete -- [ ] Middleware tests cover all scenarios (authorized, unauthorized, missing role) -- [ ] Integration tests verify route protection with different user roles -- [ ] All tests pass successfully -- [ ] Documentation is consistent with implementation - -## Tasks -- [ ] Update `docs/roles-and-permissions.md` with complete role matrix and examples -- [ ] Add integration tests for protected routes -- [ ] Run all tests to verify functionality \ No newline at end of file diff --git a/issue_1234.md b/issue_1234.md deleted file mode 100644 index b00b37c..0000000 --- a/issue_1234.md +++ /dev/null @@ -1,19 +0,0 @@ -# Issue: Implement Role-Based Access Control (RBAC) for API Endpoints - -## Description -Implement role-based access control (RBAC) for the API endpoints to ensure that only users with the appropriate roles can access specific resources. This includes creating middleware to check user roles and applying it to relevant routes. - -## Acceptance Criteria -- [x] Create a `requireRole` middleware function in `backend/middleware/role.middleware.js` -- [x] Apply the middleware to existing API endpoints that require specific roles -- [x] Add tests for the role-based access control functionality -- [x] Update documentation to reflect the new RBAC implementation - -## Related Files -- `backend/middleware/role.middleware.js` -- `backend/controllers/...` (to be updated) -- `backend/routes/...` (to be updated) -- `test/roles.test.js` - -## Notes -This task builds upon the existing roles and permissions documentation in `docs/roles-and-permissions.md`. \ No newline at end of file