grafana/pkg/services/licensing/accesscontrol.go
Karl Persson 7192b7caee
Access control: Move licensing actions to licensing package (#46588)
* Move licensing actions to licensing package
2022-03-16 14:37:19 +01:00

17 lines
495 B
Go

package licensing
import "github.com/grafana/grafana/pkg/services/accesscontrol"
const (
ActionRead = "licensing:read"
ActionUpdate = "licensing:update"
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),
)