Drilldown: Require datasources:explore RBAC action (#101366)
Drilldown: Require `datasources:explore` acton
This commit is contained in:
@@ -386,8 +386,7 @@ const (
|
||||
ActionSettingsWrite = "settings:write"
|
||||
|
||||
// Datasources actions
|
||||
ActionDatasourcesExplore = "datasources:explore"
|
||||
ActionDatasourcesDrilldown = "datasources:drilldown"
|
||||
ActionDatasourcesExplore = "datasources:explore"
|
||||
|
||||
// Global Scopes
|
||||
ScopeGlobalUsersAll = "global.users:*"
|
||||
|
||||
@@ -130,7 +130,7 @@ func (s *ServiceImpl) GetNavTree(c *contextmodel.ReqContext, prefs *pref.Prefere
|
||||
})
|
||||
}
|
||||
|
||||
if hasAccess(ac.EvalPermission(ac.ActionDatasourcesDrilldown)) {
|
||||
if hasAccess(ac.EvalPermission(ac.ActionDatasourcesExplore)) {
|
||||
drilldownChildNavLinks := s.buildDrilldownNavLinks(c)
|
||||
treeRoot.AddSection(&navtree.NavLink{
|
||||
Text: "Drilldown",
|
||||
|
||||
Reference in New Issue
Block a user