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

Function ownerSubject

packages/core/sdk/src/executor.ts:1135–1139  ·  view source on GitHub ↗
(owner: Owner)

Source from the content-addressed store, hash-verified

1133 const readOwners: readonly Owner[] = input.owner.subject == null ? ["org"] : ["user", "org"];
1134
1135 const ownerSubject = (owner: Owner): { owner: Owner; subject: string } | null => {
1136 if (owner === "org") return { owner: "org", subject: ORG_SUBJECT };
1137 if (input.owner.subject == null) return null;
1138 return { owner: "user", subject: String(input.owner.subject) };
1139 };
1140
1141 const tenant = String(input.owner.tenant);
1142

Callers 5

whereOwnerFunction · 0.70
putImplFunction · 0.70
removeImplFunction · 0.70
putManyImplFunction · 0.70
removeManyImplFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected