Add provider-specific creation permissions

This commit is contained in:
Peer Hogeterp committed 2026-09-14 13:28:07 +02:00
1 parent 6e735523c6
commit d65e11fbb2
7 files changed
+36 -8

No files matched your search

@@ -154,6 +154,21 @@ public sealed class DataApp(Expression<Func<Data, DataApp>>? configSelection = n
/// </summary>
public bool AllowUserToAddProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.AllowUserToAddProvider, true);
/// <summary>
/// Should the user be allowed to add LLM providers?
/// </summary>
public bool AllowUserToAddLLMProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.AllowUserToAddLLMProvider, true);
/// <summary>
/// Should the user be allowed to add embedding providers?
/// </summary>
public bool AllowUserToAddEmbeddingProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.AllowUserToAddEmbeddingProvider, true);
/// <summary>
/// Should the user be allowed to add transcription providers?
/// </summary>
public bool AllowUserToAddTranscriptionProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.AllowUserToAddTranscriptionProvider, true);
/// <summary>
/// Should the user be allowed to import plugin archives from disk?
/// </summary>