Remove custom setting name for trusted providers

This commit is contained in:
Thorsten Sommer 2026-06-21 14:44:52 +02:00
parent 78670b310b
commit 53cb9034f9
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 3 additions and 4 deletions

View File

@ -342,7 +342,7 @@ CONFIG["SETTINGS"] = {}
-- These IDs may refer to LLM providers, embedding providers, or transcription providers
-- defined in this configuration. Trusted providers are treated like self-hosted providers
-- only for data-source security checks and related local data warnings.
-- CONFIG["SETTINGS"]["DataSourceSecurity.TrustedProviderIds"] = {
-- CONFIG["SETTINGS"]["DataSourceSecuritySettings.TrustedProviderIds"] = {
-- "00000000-0000-0000-0000-000000000000",
-- "00000000-0000-0000-0000-000000000001",
-- }

View File

@ -483,7 +483,6 @@ public sealed class SettingsManager
throw new ArgumentException("Expression must be a property access", nameof(propertyExpression));
// Return the full name of the property, including the class name:
var typeName = typeof(TIn) == typeof(DataSourceSecuritySettings) ? "DataSourceSecurity" : typeof(TIn).Name;
return $"{typeName}.{memberExpr.Member.Name}";
return $"{typeof(TIn).Name}.{memberExpr.Member.Name}";
}
}