mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix access control service init (#32492)
* Fix access control service init * Chore: use assert from testify package
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user