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

Function requireAdmin

packages/core/sdk/src/platform-view.test.ts:260–264  ·  view source on GitHub ↗
(executor: Executor)

Source from the content-addressed store, hash-verified

258 }).pipe(Effect.orDie);
259
260const requireAdmin = (executor: Executor) => {
261 const admin = executor.admin;
262 if (!admin) return Effect.die("expected the platform view to be enabled");
263 return Effect.succeed(admin);
264};
265
266describe("platform view — admin.listSubjects", () => {
267 it.effect("lists every subject in the tenant and no other tenant's", () =>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected