mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Access control: Move licensing actions to licensing package (#46588)
* Move licensing actions to licensing package
This commit is contained in:
@@ -310,12 +310,6 @@ const (
|
||||
// Settings scope
|
||||
ScopeSettingsAll = "settings:*"
|
||||
|
||||
// Licensing related actions
|
||||
ActionLicensingRead = "licensing:read"
|
||||
ActionLicensingUpdate = "licensing:update"
|
||||
ActionLicensingDelete = "licensing:delete"
|
||||
ActionLicensingReportsRead = "licensing.reports:read"
|
||||
|
||||
// Team related actions
|
||||
ActionTeamsCreate = "teams:create"
|
||||
ActionTeamsDelete = "teams:delete"
|
||||
@@ -387,9 +381,3 @@ var (
|
||||
const RoleGrafanaAdmin = "Grafana Admin"
|
||||
|
||||
const FixedRolePrefix = "fixed:"
|
||||
|
||||
// LicensingPageReaderAccess defines permissions that grant access to the licensing and stats page
|
||||
var LicensingPageReaderAccess = EvalAny(
|
||||
EvalPermission(ActionLicensingRead),
|
||||
EvalPermission(ActionServerStatsRead),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user