chore: commit workspace updates
This commit is contained in:
1 parent
01a2d171f5
commit
9727656b2b
491 files changed
+12826
-72249
No files matched your search
@@ -61,10 +61,6 @@ var officialApplicationPolicies = map[string]PluginManagementView{
|
||||
Origin: PluginOriginOfficial, Kind: PluginKindApplication,
|
||||
ActivationScope: PluginScopeUser, ConfigurationScope: PluginConfigurationUser,
|
||||
},
|
||||
WorkflowPluginComfyUI: {
|
||||
Origin: PluginOriginOfficial, Kind: PluginKindApplication,
|
||||
ActivationScope: PluginScopeUser, ConfigurationScope: PluginConfigurationUser,
|
||||
},
|
||||
PluginEagleAssetConnector: {
|
||||
Origin: PluginOriginOfficial, Kind: PluginKindApplication,
|
||||
ActivationScope: PluginScopeUser, ConfigurationScope: PluginConfigurationUser,
|
||||
@@ -204,7 +200,7 @@ func (s *Service) pluginStateForUser(actor *model.User, pluginID string, items [
|
||||
if !userConfigured {
|
||||
if pluginID == PluginMediaConversion {
|
||||
userEnabled = true
|
||||
} else if hasRuntime && isLegacyWorkflowPlugin(pluginID) {
|
||||
} else if hasRuntime && pluginID == WorkflowPluginRunningHub {
|
||||
userEnabled = runtimePlugin.Status == "enabled"
|
||||
}
|
||||
}
|
||||
@@ -228,10 +224,6 @@ func (s *Service) pluginStateForUser(actor *model.User, pluginID string, items [
|
||||
return state, nil
|
||||
}
|
||||
|
||||
func isLegacyWorkflowPlugin(pluginID string) bool {
|
||||
return pluginID == WorkflowPluginRunningHub || pluginID == WorkflowPluginComfyUI
|
||||
}
|
||||
|
||||
func (s *Service) SetUserPluginEnabled(actor *model.User, pluginID string, enabled bool) (PluginStateView, error) {
|
||||
if actor == nil || strings.TrimSpace(actor.ID) == "" {
|
||||
return PluginStateView{}, Forbidden("请先登录")
|
||||
|
||||
Reference in new issue
Block a user