From 57a3ccc91ba131068d3e78c67bfff5c1b33f43ff Mon Sep 17 00:00:00 2001 From: Fabi <38692350+fgerschwiler@users.noreply.github.com> Date: Tue, 20 Oct 2020 15:54:26 +0200 Subject: [PATCH] fix: handle login policy removed (#882) --- internal/org/repository/eventsourcing/login_policy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/org/repository/eventsourcing/login_policy.go b/internal/org/repository/eventsourcing/login_policy.go index daebb3eb29..1b31096b51 100644 --- a/internal/org/repository/eventsourcing/login_policy.go +++ b/internal/org/repository/eventsourcing/login_policy.go @@ -163,6 +163,8 @@ func checkExistingLoginPolicyIDPProviderValidation(idpProvider *iam_es_model.IDP break } } + case model.LoginPolicyRemoved: + idps = make([]*iam_es_model.IDPProvider, 0) } } exists := false