(workspacePermission: 'read' | 'write' | 'admin')
| 46 | } |
| 47 | |
| 48 | const allowed = (workspacePermission: 'read' | 'write' | 'admin') => ({ |
| 49 | allowed: true, |
| 50 | status: 200, |
| 51 | workflow: mockWorkflow, |
| 52 | workspacePermission, |
| 53 | }) |
| 54 | |
| 55 | const denied = (status: number, message: string, workspacePermission: string | null = null) => ({ |
| 56 | allowed: false, |