mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
RBAC: Remove legacy AC from HasAccess permission check (#68995)
* remove unused HasAdmin and HasEdit permission methods * remove legacy AC from HasAccess method * remove unused function * update alerting tests to work with RBAC
This commit is contained in:
@@ -179,7 +179,7 @@ func (hs *HTTPServer) getFrontendSettings(c *contextmodel.ReqContext) (*dtos.Fro
|
||||
LicenseInfo: dtos.FrontendSettingsLicenseInfoDTO{
|
||||
Expiry: hs.License.Expiry(),
|
||||
StateInfo: hs.License.StateInfo(),
|
||||
LicenseUrl: hs.License.LicenseURL(hasAccess(accesscontrol.ReqGrafanaAdmin, licensing.PageAccess)),
|
||||
LicenseUrl: hs.License.LicenseURL(hasAccess(licensing.PageAccess)),
|
||||
Edition: hs.License.Edition(),
|
||||
EnabledFeatures: hs.License.EnabledFeatures(),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user