Config: Removes setting viewers_can_edit (#102275)

Revert "Revert "Config: Removes setting `viewers_can_edit` (#101767)" (#102191)"

This reverts commit 56c896fa72.
This commit is contained in:
Eric Leijonmarck
2025-03-25 13:55:59 +00:00
committed by GitHub
parent b792c31edd
commit 169b0eb5f5
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",