mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AccessControl: Hide basic roles (#48549)
Co-authored-by: Jguer <joao.guerreiro@grafana.com> Co-authored-by: Jguer <joao.guerreiro@grafana.com>
This commit is contained in:
parent
b414ac5d8c
commit
2cc276567d
@ -289,6 +289,7 @@ func BuildMacroRoleDefinitions() map[string]*RoleDTO {
|
||||
Description: "Admin role",
|
||||
Group: "Basic",
|
||||
Permissions: []Permission{},
|
||||
Hidden: true,
|
||||
},
|
||||
string(models.ROLE_EDITOR): {
|
||||
Name: "grafana:builtins:editor",
|
||||
@ -299,6 +300,7 @@ func BuildMacroRoleDefinitions() map[string]*RoleDTO {
|
||||
Description: "Editor role",
|
||||
Group: "Basic",
|
||||
Permissions: []Permission{},
|
||||
Hidden: true,
|
||||
},
|
||||
string(models.ROLE_VIEWER): {
|
||||
Name: "grafana:builtins:viewer",
|
||||
@ -309,6 +311,7 @@ func BuildMacroRoleDefinitions() map[string]*RoleDTO {
|
||||
Description: "Viewer role",
|
||||
Group: "Basic",
|
||||
Permissions: []Permission{},
|
||||
Hidden: true,
|
||||
},
|
||||
RoleGrafanaAdmin: {
|
||||
Name: "grafana:builtins:grafana_admin",
|
||||
@ -319,6 +322,7 @@ func BuildMacroRoleDefinitions() map[string]*RoleDTO {
|
||||
Description: "Grafana Admin role",
|
||||
Group: "Basic",
|
||||
Permissions: []Permission{},
|
||||
Hidden: true,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user