mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 04:47:21 +00:00
Added a way for organizations to prohibit providers (#1105)
This commit is contained in:
1 parent
052868b24e
commit
7ba5f01388
38 files changed
+1488
-629
No files matched your search
@@ -581,6 +581,14 @@ public static partial class ManagedConfiguration
|
||||
// Step 3 -- try to parse the string as the target type:
|
||||
if (EnumNames.TryParse(typeof(TValue), configuredLuaValueText, out var configuredEnum))
|
||||
set.Add((TValue)configuredEnum);
|
||||
|
||||
//
|
||||
// Dropped, but not quietly: such a set may prohibit something, and a typo would
|
||||
// otherwise leave it allowed without anybody noticing. A dry run comes before
|
||||
// the actual one, so only the actual one reports it:
|
||||
//
|
||||
else if (!dryRun)
|
||||
Log.LogWarning($"The configuration plugin '{configPluginId}' names '{configuredLuaValueText}' in the setting '{configMeta.SettingName}', which is no valid value. Ignoring it.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user