From 2409d8dc1f7a1a2310a6f7a9270b68f843b9692c Mon Sep 17 00:00:00 2001 From: Karl Persson Date: Wed, 22 Dec 2021 10:05:53 +0100 Subject: [PATCH] check the value of the feature toggle (#43433) --- .../accesscontrol/ossaccesscontrol/ossaccesscontrol.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/services/accesscontrol/ossaccesscontrol/ossaccesscontrol.go b/pkg/services/accesscontrol/ossaccesscontrol/ossaccesscontrol.go index 63ff272ce3f..4ae9742e767 100644 --- a/pkg/services/accesscontrol/ossaccesscontrol/ossaccesscontrol.go +++ b/pkg/services/accesscontrol/ossaccesscontrol/ossaccesscontrol.go @@ -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() {