mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
RBAC: Allow access to /dashboards
when user has dashboards create (#56712)
* RBAC: Allow access to dashboards when user has dashboards create * Remove eval any that I didn't add on purpose
This commit is contained in:
parent
65939ce5b1
commit
3963ed3754
@ -91,7 +91,9 @@ func (s *ServiceImpl) GetNavTree(c *models.ReqContext, hasEditPerm bool, prefs *
|
|||||||
Children: starredItemsLinks,
|
Children: starredItemsLinks,
|
||||||
EmptyMessageId: "starred-empty",
|
EmptyMessageId: "starred-empty",
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
if hasAccess(ac.ReqSignedIn, ac.EvalAny(ac.EvalPermission(dashboards.ActionDashboardsRead), ac.EvalPermission(dashboards.ActionDashboardsCreate))) {
|
||||||
dashboardChildLinks := s.buildDashboardNavLinks(c, hasEditPerm)
|
dashboardChildLinks := s.buildDashboardNavLinks(c, hasEditPerm)
|
||||||
|
|
||||||
dashboardLink := &navtree.NavLink{
|
dashboardLink := &navtree.NavLink{
|
||||||
|
Loading…
Reference in New Issue
Block a user