sk Skill · AniketTati
clm-permissions-rbac
How permissions and RBAC work in draftLegal — the p(A.X, R.Y) action/resource pattern in apps/api/src/lib/permissions.ts, the requirePermission middleware, the system-role refresh dance (apps/api/scripts/refresh-system-role-perms.ts) that syncs all 219 system roles, when to add a new action vs reuse existing (the sign vs configure split is the canonical case), org-scoped queries discipline, and cross-org isolation…
Open on skills.sh ↗read 2026-09-16
- installs 8w
- 0
- 30-day movement
- starts with the next reading
- Related entries
- 1
- Connections
- 0
typescriptjavascriptsqlbashTypeScript
- Host repository
- AniketTati/draft-legal
- Host stars
- 18
- Host language
- TypeScript