mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Remove license requirement for plugins (#7747)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user