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

Function orgWriteAccessForPrincipal

packages/hosts/mcp/src/seams.ts:76–77  ·  view source on GitHub ↗
(principal: Principal)

Source from the content-addressed store, hash-verified

74
75/** Derive the effective workspace-write access for one authenticated request. */
76export const orgWriteAccessForPrincipal = (principal: Principal): OrgWriteAccess =>
77 principal.orgRoleModel === "none" || principal.orgRole === "admin" ? "allowed" : "denied";
78
79/**
80 * Stamp request-bound workspace-write access for the MCP SDK request handler.

Callers 8

forwardFunction · 0.90
openSessionFunction · 0.90
handleApprovalRequestFunction · 0.90
envelope.test.tsFile · 0.85
makeCloudMcpAgentHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected