Security: Add authorization checks to controllers #14

Open
opened 2026-02-17 16:49:22 +00:00 by santhoshj · 0 comments
Owner

Summary

Controllers lack authorization checks. Any authenticated user can perform CRUD operations on all resources.

Location

  • backend/app/Http/Controllers/Api/V1/TeamMemberController.php
  • backend/app/Http/Controllers/Api/V1/ProjectController.php
  • All other controllers

Acceptance Criteria

  • Define roles/permissions (admin, manager, viewer)
  • Add policy classes for each model
  • Add authorization middleware to routes
  • Security review finding
## Summary Controllers lack authorization checks. Any authenticated user can perform CRUD operations on all resources. ## Location - `backend/app/Http/Controllers/Api/V1/TeamMemberController.php` - `backend/app/Http/Controllers/Api/V1/ProjectController.php` - All other controllers ## Acceptance Criteria - [ ] Define roles/permissions (admin, manager, viewer) - [ ] Add policy classes for each model - [ ] Add authorization middleware to routes ## Related - Security review finding
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: santhoshj/headroom#14