Unverified Commit d02e4861 authored by Mattermost Build's avatar Mattermost Build Committed by GitHub
Browse files

MM-27852:Enable picture update for SAML (#15284) (#15301)



* if ldap installed, attempt image update

* add license check

* add LDAP e10 license check

* check license not null, fix unit tests
Co-authored-by: default avatarMattermod <mattermod@users.noreply.github.com>
(cherry picked from commit f6bce5b3

)
Co-authored-by: default avatarScott Bishel <scott.bishel@mattermost.com>
parent 773ab352
......@@ -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)
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment