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

Function isOrgKeysAccessDenied

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

Source from the content-addressed store, hash-verified

396 * `owner` accepted client-side where cloud requires `admin`), and offering
397 * Retry on a refusal would only re-fail forever. */
398const isOrgKeysAccessDenied = (cause: Cause.Cause<unknown>): boolean =>
399 Option.match(Cause.findErrorOption(cause), {
400 onNone: () => false,
401 onSome: (error) =>
402 Predicate.isTagged(error, "AccountForbidden") ||
403 Predicate.isTagged(error, "AccountNoOrganization"),
404 });
405
406export function OrgApiKeysSection() {
407 // 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