From df6a7f8b19e2381ee57f946d5b184185653b2ee1 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 15 May 2018 13:33:47 -0700 Subject: MM-10249 Adding plugin ability to intercept posts before they reach the DB. (#8791) * Adding plugin ability to intercept posts before they reach the DB. * s/envoked/invoked/ --- app/plugin.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/plugin.go') diff --git a/app/plugin.go b/app/plugin.go index 0aaa8d1d4..0d3415f4c 100644 --- a/app/plugin.go +++ b/app/plugin.go @@ -661,3 +661,7 @@ func (a *App) ExecutePluginCommand(args *model.CommandArgs) (*model.Command, *mo } return nil, nil, nil } + +func (a *App) PluginsReady() bool { + return a.PluginEnv != nil && *a.Config().PluginSettings.Enable +} -- cgit v1.2.3-1-g7c22