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

Function isOrgKeysAccessDenied

packages/react/src/pages/api-keys.tsx:357–363  ·  view source on GitHub ↗
(cause: Cause.Cause<unknown>)

Source from the content-addressed store, hash-verified

355 * `owner` accepted client-side where cloud requires `admin`), and offering
356 * Retry on a refusal would only re-fail forever. */
357const isOrgKeysAccessDenied = (cause: Cause.Cause<unknown>): boolean =>
358 Option.match(Cause.findErrorOption(cause), {
359 onNone: () => false,
360 onSome: (error) =>
361 Predicate.isTagged(error, "AccountForbidden") ||
362 Predicate.isTagged(error, "AccountNoOrganization"),
363 });
364
365export function OrgApiKeysSection() {
366 // Gate BEFORE mounting the body: `orgApiKeysAtom` starts its fetch when the

Callers 1

OrgApiKeysSectionBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected