feat: add ft and add datasource:explore to viewers for viewers_can_edit (#103251)

* feat: add ft and add datasource:explore to viewers for viewers_can_edit

* removed the feature toggle

* remove file
This commit is contained in:
Eric Leijonmarck
2025-04-02 12:25:42 +03:00
committed by GitHub
parent 93009a4f5b
commit 1c07fd3d4f
+5
View File
@@ -71,6 +71,11 @@ 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",