method

LocalAPI.Capabilities

Evaluate collection, document, and field access without side effects.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.
idstringThe id value.
optionsCapabilityOptionsThe options value.

Returns

The declared result.

(AccessCapabilities, error)

How it works

No hooks, validation, or mutation run. Results are presentation hints only; every later operation re-authorizes transactionally.

Full signature

func (local *LocalAPI) Capabilities( ctx context.Context, collection, id string, options CapabilityOptions, ) (AccessCapabilities, error)

Source core/local.go:416

Related types

  • LocalAPI

    In-process content operations that share the REST authorization and lifecycle pipeline.

  • CapabilityOptions

    Side-effect-free access evaluation input.

  • AccessCapabilities

    Evaluated operation and per-field permission booleans.