Skip to main content

system_config

Function system_config 

Source
pub async fn system_config(
    field: &str,
) -> Result<Option<ConfigOption>, ConfigError>
Expand description

Reads a SYSTEM (server-wide) config field from the global admin database. For server-wide keys (infra URLs, locale) and the bootstrap reads that run before any user is resolved. Per-user config goes through User::config.

ยงErrors

ConfigError::DB on a database error.