SAML: single logout only enabled in enterprise (#31325)

This commit is contained in:
Leonard Gram
2021-02-19 10:00:30 +01:00
committed by GitHub
parent 7ccba047c6
commit fe74c51d68

View File

@ -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
}