mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-12 23:13:48 +00:00
Add provider-specific creation permissions
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user