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:
Eric Leijonmarck
2025-02-26 13:41:23 +00:00
committed by GitHub
co-authored by Jo
parent c873d975a4
commit 4ce41acade
5 changed files with 12 additions and 44 deletions
-4
View File
@@ -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",