From 693d11304be1972749b135b8da5d207a5bbd8d55 Mon Sep 17 00:00:00 2001 From: Christopher Poile Date: Thu, 23 May 2019 15:34:59 -0400 Subject: [PATCH] * stop exposing plugin's SettingsSchema in api/v4/plugins/webapp (#10911) --- api4/plugin.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api4/plugin.go b/api4/plugin.go index c37683fb41..519013f2f1 100644 --- a/api4/plugin.go +++ b/api4/plugin.go @@ -161,7 +161,11 @@ func getWebappPlugins(c *Context, w http.ResponseWriter, r *http.Request) { clientManifests := []*model.Manifest{} for _, m := range manifests { if m.HasClient() { - clientManifests = append(clientManifests, m.ClientManifest()) + manifest := m.ClientManifest() + + // There is no reason to expose the SettingsSchema in this API call; it's not used in the webapp. + manifest.SettingsSchema = nil + clientManifests = append(clientManifests, manifest) } }