2022-03-16 08:37:19 -05:00
|
|
|
package licensing
|
|
|
|
|
|
|
|
import "github.com/grafana/grafana/pkg/services/accesscontrol"
|
|
|
|
|
|
|
|
const (
|
|
|
|
ActionRead = "licensing:read"
|
2022-06-02 07:14:48 -05:00
|
|
|
ActionUpdate = "licensing:write"
|
2022-03-16 08:37:19 -05:00
|
|
|
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),
|
|
|
|
)
|