| 1 | import { createAccessControl } from "better-auth/plugins/access"; |
| 2 | import { adminAc, ownerAc |
| 3 | |
| 4 | const ac = createAccessControl |
| 5 | projects: ["create", |
| 6 | }); |
| 7 | |
| 8 | export const roles = |
| 9 | owner: ac.newRole |
| 10 | ...ownerAc.statements, |
| 11 | projects: ["create", |
| 12 | }), |
| 13 | admin: ac.newRole |
| 14 | ...adminAc.statements, |
| 15 | projects: ["create", |
| 16 | }), |
| 17 | lead: ac.newRole |
| 18 | projects: ["create", |
| 19 | }), |
| 20 | member: ac.newRole |
| 21 | projects: ["read"], |
| 22 | }), |
| 23 | }; |