MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / noOrganization

Function noOrganization

apps/cloud/src/org/auth-middleware.ts:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 );
27
28const 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`

Callers 1

auth-middleware.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected