check the value of the feature toggle (#43433)

This commit is contained in:
Karl Persson 2021-12-22 10:05:53 +01:00 committed by GitHub
parent ded33ba449
commit 2409d8dc1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,9 +37,7 @@ func (ac *OSSAccessControlService) IsDisabled() bool {
if ac.Cfg == nil {
return true
}
_, exists := ac.Cfg.FeatureToggles["accesscontrol"]
return !exists
return !ac.Cfg.FeatureToggles["accesscontrol"]
}
func (ac *OSSAccessControlService) registerUsageMetrics() {