grafana/pkg/services/licensing/accesscontrol.go

17 lines
494 B
Go
Raw Normal View History

package licensing
import "github.com/grafana/grafana/pkg/services/accesscontrol"
const (
ActionRead = "licensing:read"
ActionUpdate = "licensing:write"
ActionDelete = "licensing:delete"
ActionReportsRead = "licensing.reports:read"
)
// PageAccess defines permissions that grant access to the licensing and stats page
var PageAccess = accesscontrol.EvalAny(
accesscontrol.EvalPermission(ActionRead),
accesscontrol.EvalPermission(accesscontrol.ActionServerStatsRead),
)