gohorsejobs/backend/internal/services
Tiago Yamamoto 73967ca52b fix(users): allow superadmin to list all users without tenant restriction
- Modified ListUsers handler to check for admin/superadmin role
- Superadmins can now list all users across tenants
- Added ListUsers method to AdminService
- Added Status field to dto.User

Fixes 403 error when superadmin tries to access /api/v1/users
2025-12-26 00:51:54 -03:00
..
admin_service.go fix(users): allow superadmin to list all users without tenant restriction 2025-12-26 00:51:54 -03:00
admin_service_test.go test(backend): add UpdateCompanyStatus tests for admin service 2025-12-25 22:08:02 -03:00
application_service.go feat: implement dynamic dashboard, auth hardening (pepper/httponly) and backend tests 2025-12-24 01:30:33 -03:00
audit_service.go fix(services): initialize all list slices to empty array to prevent null json response 2025-12-24 18:11:17 -03:00
audit_service_test.go test: add admin, notification, audit service tests (+30% coverage increase) 2025-12-24 20:01:54 -03:00
job_service.go debug(backend): add console logging to job creation endpoint 2025-12-25 22:34:24 -03:00
job_service_test.go feat: add profile page, dynamic dashboard, and backend integration tests 2025-12-24 19:38:11 -03:00
notification_service.go fix(services): initialize slices to empty array to prevent null json response 2025-12-24 17:52:13 -03:00
notification_service_test.go test: add admin, notification, audit service tests (+30% coverage increase) 2025-12-24 20:01:54 -03:00
ticket_service.go fix(services): initialize slices to empty array to prevent null json response 2025-12-24 17:52:13 -03:00