()
| 26 | ); |
| 27 | |
| 28 | const noOrganization = () => |
| 29 | HttpServerResponse.jsonUnsafe( |
| 30 | { |
| 31 | error: "No organization in session", |
| 32 | code: "no_organization", |
| 33 | }, |
| 34 | { status: 403 }, |
| 35 | ); |
| 36 | |
| 37 | /** |
| 38 | * The caller's role in the session org, as `authorizeOrganizationSelector` |