prevent panic on mfa enforcement delete after a namespace is deleted (#18923)
* prevent panic on mfa enforcement delete after a namespace is deleted * CL
This commit is contained in:
parent
881ae5a303
commit
9c8fcaf5a5
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
core: prevent panic in login mfa enforcement delete after enforcement's namespace is deleted
|
||||
```
|
|
@ -2700,6 +2700,10 @@ func (b *LoginMFABackend) deleteMFALoginEnforcementConfigByNameAndNamespace(ctx
|
|||
return err
|
||||
}
|
||||
|
||||
if eConfig == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
entryIndex := mfaLoginEnforcementPrefix + eConfig.ID
|
||||
barrierView, err := b.Core.barrierViewForNamespace(eConfig.NamespaceID)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue