* stop exposing plugin's SettingsSchema in api/v4/plugins/webapp (#10911)

Этот коммит содержится в:
Christopher Poile
2019-05-23 15:34:59 -04:00
коммит произвёл Christopher Speller
родитель 869e8eae26
Коммит 693d11304b

Просмотреть файл

@@ -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)
}
}