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

Function requireAdmin

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

Source from the content-addressed store, hash-verified

257 }).pipe(Effect.orDie);
258
259const requireAdmin = (executor: Executor) => {
260 const admin = executor.admin;
261 if (!admin) return Effect.die("expected the platform view to be enabled");
262 return Effect.succeed(admin);
263};
264
265describe("platform view — admin.listSubjects", () => {
266 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