From f6bce5b32a3fc650033270eaadce0b79e51b4dfb Mon Sep 17 00:00:00 2001 From: Scott Bishel Date: Tue, 18 Aug 2020 10:18:21 -0600 Subject: [PATCH] MM-27852:Enable picture update for SAML (#15284) * if ldap installed, attempt image update * add license check * add LDAP e10 license check * check license not null, fix unit tests Co-authored-by: Mattermod --- app/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/login.go b/app/login.go index f9577f1142a..4eaba3252a4 100644 --- a/app/login.go +++ b/app/login.go @@ -174,7 +174,7 @@ func (a *App) DoLogin(w http.ResponseWriter, r *http.Request, user *model.User, a.SetSession(session) - if user.AuthService == model.USER_AUTH_SERVICE_LDAP && a.Ldap() != nil { + if a.Srv().License() != nil && *a.Srv().License().Features.LDAP && a.Ldap() != nil { a.Srv().Go(func() { a.Ldap().UpdateProfilePictureIfNecessary(user, session) })