mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 09:33:34 -06:00
refactor: fix displayname and description for serviceaccount role (#41946)
* refactor: fix displayname and description for serviceaccount role * add: ActionWrite, ActionCreate * refactor: update description
This commit is contained in:
parent
8ccd7599bd
commit
253da4a936
@ -8,11 +8,19 @@ import (
|
||||
var (
|
||||
role = accesscontrol.RoleRegistration{
|
||||
Role: accesscontrol.RoleDTO{
|
||||
Version: 2,
|
||||
Version: 3,
|
||||
Name: "fixed:serviceaccounts:writer",
|
||||
Description: "",
|
||||
DisplayName: "Service accounts writer",
|
||||
Description: "Create, delete, read, or query service accounts.",
|
||||
Group: "Service accounts",
|
||||
Permissions: []accesscontrol.Permission{
|
||||
{
|
||||
Action: serviceaccounts.ActionRead,
|
||||
Scope: serviceaccounts.ScopeAll,
|
||||
},
|
||||
{
|
||||
Action: serviceaccounts.ActionCreate,
|
||||
},
|
||||
{
|
||||
Action: serviceaccounts.ActionDelete,
|
||||
Scope: serviceaccounts.ScopeAll,
|
||||
|
@ -8,5 +8,8 @@ var (
|
||||
)
|
||||
|
||||
const (
|
||||
ActionRead = "serviceaccounts:read"
|
||||
ActionWrite = "serviceaccounts:write"
|
||||
ActionCreate = "serviceaccounts:create"
|
||||
ActionDelete = "serviceaccounts:delete"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user