Access control: Move licensing actions to licensing package (#46588)

* Move licensing actions to licensing package
This commit is contained in:
Karl Persson
2022-03-16 14:37:19 +01:00
committed by GitHub
parent c42d2e6f5d
commit 7192b7caee
3 changed files with 18 additions and 13 deletions

View File

@@ -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),
)