Revert "Authz: Removes setting viewers_can_edit" (#101528)

Revert "Authz: Removes setting `viewers_can_edit` (#101265)"

This reverts commit 4ce41acade.
This commit is contained in:
Ieva
2025-03-03 20:26:55 +02:00
committed by GitHub
parent 22d39f585d
commit 5f6b00a72f
5 changed files with 44 additions and 12 deletions
+4
View File
@@ -71,6 +71,10 @@ 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",