admin 1a68840805 fix(auth)!: implement proper RBAC with role-permission checking
BREAKING CHANGE: Authorization now requires role_permissions table

Previously checked only if permission existed, now verifies user's
role has been granted the permission. Closes critical security gap
allowing any user to access any resource.

- feat: add role_permissions table schema
- feat: add GetPermissionByResourceActionAndRole repository method
- fix: update Authorize to check user role before granting access
- fix: update cache keys to include roleID
- test: update all tests for new authorization flow
2026-01-22 14:09:37 +08:00
2026-01-16 10:50:50 +08:00
2026-01-16 10:50:50 +08:00
2025-12-17 09:42:18 +08:00
2026-01-16 10:50:50 +08:00
2025-12-17 10:01:58 +08:00
2026-01-05 14:03:51 +08:00
2026-01-05 10:30:54 +08:00
2025-12-04 10:55:25 +08:00
2025-12-16 10:57:26 +08:00
2025-12-16 10:57:26 +08:00
2026-01-05 14:06:43 +08:00
S
Description
No description provided
417 KiB
Languages
Go 100%