type
AdminConfig
Application-level configuration for the framework-owned admin.
Example
AdminConfig{User: "users"}Properties
| Property | Type | Description |
|---|---|---|
Loaders | []AdminLoaderDefinition | Loaders registers read-only data functions for admin pages, views and dashboard panels. |
User | schema.CollectionSlug | The auth-enabled collection whose sessions may enter the admin; required when any auth collection exists. |
Localization | AdminLocalizationConfig | Configures 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
}