Fix access control service init (#32492)

* Fix access control service init

* Chore: use assert from testify package
This commit is contained in:
Alexander Zobnin
2021-03-30 16:14:43 +03:00
committed by GitHub
parent 270a255c08
commit 784425c2ee
2 changed files with 5 additions and 0 deletions

View File

@@ -40,6 +40,10 @@ func (m *Manager) Init() error {
}
func (m *Manager) IsDisabled() bool {
if m.Cfg == nil {
return true
}
_, exists := m.Cfg.FeatureToggles["accesscontrol"]
return !exists
}