mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 04:59:15 -06:00
check the value of the feature toggle (#43433)
This commit is contained in:
parent
ded33ba449
commit
2409d8dc1f
@ -37,9 +37,7 @@ func (ac *OSSAccessControlService) IsDisabled() bool {
|
|||||||
if ac.Cfg == nil {
|
if ac.Cfg == nil {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
return !ac.Cfg.FeatureToggles["accesscontrol"]
|
||||||
_, exists := ac.Cfg.FeatureToggles["accesscontrol"]
|
|
||||||
return !exists
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ac *OSSAccessControlService) registerUsageMetrics() {
|
func (ac *OSSAccessControlService) registerUsageMetrics() {
|
||||||
|
Loading…
Reference in New Issue
Block a user