From fe74c51d685073b8e543478399d21afcac08bb6f Mon Sep 17 00:00:00 2001 From: Leonard Gram Date: Fri, 19 Feb 2021 10:00:30 +0100 Subject: [PATCH] SAML: single logout only enabled in enterprise (#31325) --- pkg/api/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/login.go b/pkg/api/login.go index 30c303a530b..2b1d6f67d67 100644 --- a/pkg/api/login.go +++ b/pkg/api/login.go @@ -273,7 +273,7 @@ func (hs *HTTPServer) loginUserWithUser(user *models.User, c *models.ReqContext) } func (hs *HTTPServer) Logout(c *models.ReqContext) { - if hs.Cfg.SAMLEnabled && hs.Cfg.SAMLSingleLogoutEnabled { + if hs.Cfg.SAMLEnabled && hs.Cfg.SAMLSingleLogoutEnabled && hs.License.HasValidLicense() { c.Redirect(setting.AppSubUrl + "/logout/saml") return }