Access control: Add a role for provisioning admins (#33787)

This commit is contained in:
Vardan Torosyan
2021-05-10 11:46:42 +02:00
committed by GitHub
parent baf80dad82
commit 1d15686bdf
2 changed files with 23 additions and 0 deletions
+7
View File
@@ -42,6 +42,10 @@ func (p RoleDTO) Role() Role {
const (
// Permission actions
// Actions
// Provisioning actions
ActionProvisioningReload = "provisioning:reload"
// Users actions
ActionUsersRead = "users:read"
ActionUsersWrite = "users:write"
@@ -80,6 +84,9 @@ const (
ScopeUsersSelf = "users:self"
ScopeUsersAll = "users:*"
// Services Scopes
ScopeServicesAll = "service:*"
)
const RoleGrafanaAdmin = "Grafana Admin"