security/codeql-dependabot-gitleaks
| 1 | import type { PermissionOperation } from "./types" |
| 2 | |
| 3 | /** |
| 4 | * Map of operations to the operations they imply. |
| 5 | * The wildcard (*) implies all CRUD operations. |
| 6 | */ |
| 7 | export const OPERATION_IMPLICATIONS: Record< |
| 8 | PermissionOperation, |
| 9 | PermissionOperation[] |
| 10 | > = { |
| 11 | read: ["read"], |
| 12 | create: ["create"], |
| 13 | update: ["update"], |
| 14 | delete: ["delete"], |
| 15 | "*": ["read", "create", "update", "delete", "*"], |
| 16 | } |