remove action to manage plugin that is not used or documented (#49309)

pull/49297/head
Karl Persson 4 years ago committed by GitHub
parent b864442717
commit f5ec4bcbd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/api/index.go
  2. 3
      pkg/services/accesscontrol/models.go

@ -632,7 +632,7 @@ func (hs *HTTPServer) buildAdminNavLinks(c *models.ReqContext) []*dtos.NavLink {
})
}
if hs.Cfg.PluginAdminEnabled && hasAccess(ac.ReqGrafanaAdmin, ac.EvalPermission(ac.ActionPluginsManage)) {
if hs.Cfg.PluginAdminEnabled && ac.ReqGrafanaAdmin(c) {
adminNavLinks = append(adminNavLinks, &dtos.NavLink{
Text: "Plugins", Id: "admin-plugins", Url: hs.Cfg.AppSubURL + "/admin/plugins", Icon: "plug",
})

@ -327,9 +327,6 @@ const (
// Datasources actions
ActionDatasourcesExplore = "datasources:explore"
// Plugin actions
ActionPluginsManage = "plugins:manage"
// Global Scopes
ScopeGlobalUsersAll = "global.users:*"

Loading…
Cancel
Save