BookStack\Services\SettingService::getOverrideValue PHP Method

getOverrideValue() protected method

Used where certain configuration options overrule others. Returns null if no override value is available.
protected getOverrideValue ( $key ) : boolean | null
$key
return boolean | null
    protected function getOverrideValue($key)
    {
        if ($key === 'registration-enabled' && config('auth.method') === 'ldap') {
            return false;
        }
        return null;
    }