mirror of https://github.com/grafana/grafana
Access control: Move licensing actions to licensing package (#46588)
* Move licensing actions to licensing packagepull/46641/head
parent
c42d2e6f5d
commit
7192b7caee
@ -0,0 +1,16 @@ |
||||
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), |
||||
) |
||||
Loading…
Reference in new issue