mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
5dbea9996b
* update action names * correctly retrieve teams for signed in user * remove test * undo swagger changes * undo swagger changes pt2 * add migration from old action names to the new ones * rename from list to read * linting * also update alertign actions * fix migration
17 lines
494 B
Go
17 lines
494 B
Go
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),
|
|
)
|