method

LocalAPI.Capabilities

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

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

Source core/local.go:378

@param ctx
The ctx value.
@param collection
The collection value.
@param id
The id value.
@param options
The options value.
@returns
The declared result.

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

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.