Remove license requirement for plugins (#7747)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ce2b2be5de
Коммит
1012bce8bb
@@ -25,7 +25,7 @@ func TestPlugin(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
defer os.RemoveAll(webappDir)
|
||||
|
||||
th := SetupEnterprise().InitBasic().InitSystemAdmin()
|
||||
th := Setup().InitBasic().InitSystemAdmin()
|
||||
defer th.TearDown()
|
||||
|
||||
enablePlugins := *th.App.Config().PluginSettings.Enable
|
||||
|
||||
@@ -517,7 +517,7 @@ func (a *App) DisablePlugin(id string) *model.AppError {
|
||||
}
|
||||
|
||||
func (a *App) InitPlugins(pluginPath, webappPath string) {
|
||||
if !utils.IsLicensed() || !*utils.License().Features.FutureFeatures || !*a.Config().PluginSettings.Enable {
|
||||
if !*a.Config().PluginSettings.Enable {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user