mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
Merge pull request #6111 from grafana/pluginreadme
allow non-admin users to view plugin readme
This commit is contained in:
commit
d6a0ec85c4
@ -203,9 +203,9 @@ func Register(r *macaron.Macaron) {
|
|||||||
|
|
||||||
r.Get("/plugins", wrap(GetPluginList))
|
r.Get("/plugins", wrap(GetPluginList))
|
||||||
r.Get("/plugins/:pluginId/settings", wrap(GetPluginSettingById))
|
r.Get("/plugins/:pluginId/settings", wrap(GetPluginSettingById))
|
||||||
|
r.Get("/plugins/:pluginId/readme", wrap(GetPluginReadme))
|
||||||
|
|
||||||
r.Group("/plugins", func() {
|
r.Group("/plugins", func() {
|
||||||
r.Get("/:pluginId/readme", wrap(GetPluginReadme))
|
|
||||||
r.Get("/:pluginId/dashboards/", wrap(GetPluginDashboards))
|
r.Get("/:pluginId/dashboards/", wrap(GetPluginDashboards))
|
||||||
r.Post("/:pluginId/settings", bind(m.UpdatePluginSettingCmd{}), wrap(UpdatePluginSetting))
|
r.Post("/:pluginId/settings", bind(m.UpdatePluginSettingCmd{}), wrap(UpdatePluginSetting))
|
||||||
}, reqOrgAdmin)
|
}, reqOrgAdmin)
|
||||||
|
Loading…
Reference in New Issue
Block a user