Authz: Removes setting viewers_can_edit (#101265)
* Removes setting `viewers_can_edit` * Update public/app/features/dashboard-scene/scene/NavToolbarActions.tsx Co-authored-by: Jo <joao.guerreiro@grafana.com> * formatting --------- Co-authored-by: Jo <joao.guerreiro@grafana.com>
This commit is contained in:
@@ -74,10 +74,6 @@ func (hs *HTTPServer) declareFixedRoles() error {
|
||||
Grants: []string{string(org.RoleEditor)},
|
||||
}
|
||||
|
||||
if hs.Cfg.ViewersCanEdit {
|
||||
datasourcesExplorerRole.Grants = append(datasourcesExplorerRole.Grants, string(org.RoleViewer))
|
||||
}
|
||||
|
||||
datasourcesReaderRole := ac.RoleRegistration{
|
||||
Role: ac.RoleDTO{
|
||||
Name: "fixed:datasources:reader",
|
||||
|
||||
Reference in New Issue
Block a user