fix: Viewers can edit means that viewers have acces to Explore #14281

This commit is contained in:
Hugo Häggmark
2019-01-21 08:47:41 +01:00
parent bc8f3374a3
commit 9d6ac2c3d4
7 changed files with 25 additions and 5 deletions

View File

@@ -140,7 +140,7 @@ func (hs *HTTPServer) setIndexViewData(c *m.ReqContext) (*dtos.IndexViewData, er
Children: dashboardChildNavs,
})
if setting.ExploreEnabled && (c.OrgRole == m.ROLE_ADMIN || c.OrgRole == m.ROLE_EDITOR) {
if setting.ExploreEnabled && (c.OrgRole == m.ROLE_ADMIN || c.OrgRole == m.ROLE_EDITOR || setting.ViewersCanEdit) {
data.NavTree = append(data.NavTree, &dtos.NavLink{
Text: "Explore",
Id: "explore",