mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
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 <mattermod@users.noreply.github.com>
This commit is contained in:
parent
e1ca3e348f
commit
f6bce5b32a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue