Config: Removes setting viewers_can_edit (#101767)

Reapply "Authz: Removes setting `viewers_can_edit`" (#101528)

This reverts commit 5f6b00a72f.
This commit is contained in:
Eric Leijonmarck
2025-03-14 08:38:48 +00:00
committed by GitHub
parent 14e2784e69
commit d3a9c04562
5 changed files with 12 additions and 50 deletions
-5
View File
@@ -71,11 +71,6 @@ func (hs *HTTPServer) declareFixedRoles() error {
Grants: []string{string(org.RoleEditor)},
}
//nolint:staticcheck // ViewersCanEdit is deprecated but still used for backward compatibility
if hs.Cfg.ViewersCanEdit {
datasourcesExplorerRole.Grants = append(datasourcesExplorerRole.Grants, string(org.RoleViewer))
}
datasourcesReaderRole := ac.RoleRegistration{
Role: ac.RoleDTO{
Name: "fixed:datasources:reader",