type

AdminConfig

Application-level configuration for the framework-owned admin.

Example

go
AdminConfig{User: "users"}

Properties

PropertyTypeDescription
Loaders[]AdminLoaderDefinitionLoaders registers read-only data functions for admin pages, views and dashboard panels.
Userschema.CollectionSlugThe auth-enabled collection whose sessions may enter the admin; required when any auth collection exists.
LocalizationAdminLocalizationConfigConfigures interface languages and editor timezones independently from content localization.

How it works

This setting selects the admin identity source; collection access still provides the authorization decision.

Full signature

type AdminConfig struct { // Loaders registers read-only data functions for admin pages, views and dashboard panels. Loaders []AdminLoaderDefinition // User is the slug of the auth-enabled collection whose sessions may access // the admin. It is required when the application has any auth collection. User schema.CollectionSlug // Localization configures the language and timezone choices for the // framework-owned interface. It is independent from content localization. Localization AdminLocalizationConfig }

Source core/config.go:95