type
CapabilityOptions
Side-effect-free access evaluation input.
Properties
| Property | Type | Description |
|---|---|---|
Data | store.Values | Proposed create or update values evaluated by access rules. |
Actor | *store.Document | Authenticated actor, or nil for an anonymous request. |
ActorCollection | schema.CollectionSlug | Exact auth collection that owns Actor. |
TrashOnly | bool | Evaluate permanent-delete capability for an already trashed document. |
Locale | schema.LocaleCode | Content locale; empty selects the application default. |
FallbackLocales | []schema.LocaleCode | Optional replacement fallback chain. |
DisableFallback | bool | Require an exact localized value instead of following fallbacks. |
AllLocales | bool | Evaluate localized fields across every configured locale. |
How it works
Data models proposed create/update values. Capabilities runs no hooks, validation, or mutation and returns booleans only—not access predicates.
Full signature
type CapabilityOptions struct {
Data store.Values
Actor *store.Document
ActorCollection schema.CollectionSlug
TrashOnly bool
Locale schema.LocaleCode
FallbackLocales []schema.LocaleCode
DisableFallback bool
AllLocales bool
}