mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 17:32:11 +00:00
Fixed offering to share plugins that cannot be imported
This commit is contained in:
parent
475ea5339a
commit
9cbf0c1256
@ -217,7 +217,12 @@ public partial class Plugins : MSGComponentBase
|
||||
return plugin is { IsInternal: false, IsManagedByConfigServer: false, Type: PluginType.ASSISTANT } && !string.IsNullOrWhiteSpace(plugin.LocalPath) && assistantPlugin?.IsManagedByConfigServer is false;
|
||||
}
|
||||
|
||||
private static bool CanSharePlugin(IAvailablePlugin plugin) => plugin is { IsInternal: false, IsManagedByConfigServer: false } && !string.IsNullOrWhiteSpace(plugin.LocalPath);
|
||||
/// <summary>
|
||||
/// Sharing is limited to assistant plugins because the import accepts only those. Otherwise,
|
||||
/// users would create archives nobody can install. Widen this once the import supports more
|
||||
/// plugin types.
|
||||
/// </summary>
|
||||
private static bool CanSharePlugin(IAvailablePlugin plugin) => plugin is { IsInternal: false, IsManagedByConfigServer: false, Type: PluginType.ASSISTANT } && !string.IsNullOrWhiteSpace(plugin.LocalPath);
|
||||
|
||||
/// <summary>
|
||||
/// Organizations may disable importing plugin archives by using a configuration plugin.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user