type

LocaleAvailabilityContext

Request input for dynamic admin locale visibility.

Properties

PropertyTypeDescription
Contextcontext.ContextCarries request cancellation and deadlines.
Actor*store.DocumentThe authenticated author, or nil.
ActorCollectionschema.CollectionSlugIdentifies the exact auth collection owning Actor.
Local*LocalAPIEnters ordinary access-controlled content operations.

How it works

Use Actor and ActorCollection to make request-scoped presentation choices. Local enters the same access-controlled operation engine as other local API calls; the callback does not receive a privileged database handle.

Full signature

type LocaleAvailabilityContext struct { Context context.Context Actor *store.Document ActorCollection schema.CollectionSlug Local *LocalAPI }

Source core/config.go:79