* refactor: fix displayname and description for serviceaccount role
* add: ActionWrite, ActionCreate
* refactor: update description
(cherry picked from commit 253da4a936)
Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
16 lines
404 B
Go
16 lines
404 B
Go
package serviceaccounts
|
|
|
|
import "github.com/grafana/grafana/pkg/services/accesscontrol"
|
|
|
|
var (
|
|
ScopeAll = "serviceaccounts:*"
|
|
ScopeID = accesscontrol.Scope("serviceaccounts", "id", accesscontrol.Parameter(":serviceaccountId"))
|
|
)
|
|
|
|
const (
|
|
ActionRead = "serviceaccounts:read"
|
|
ActionWrite = "serviceaccounts:write"
|
|
ActionCreate = "serviceaccounts:create"
|
|
ActionDelete = "serviceaccounts:delete"
|
|
)
|