mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-25 10:07:25 +08:00
Merge pull request #2585 from mattermost/fix-ldap-email
Fix for ldap ability to change email
This commit is contained in:
+1
-1
@@ -352,7 +352,7 @@ func IsInRole(userRoles string, inRole string) bool {
|
||||
}
|
||||
|
||||
func (u *User) IsSSOUser() bool {
|
||||
if len(u.AuthData) != 0 && len(u.AuthService) != 0 {
|
||||
if len(u.AuthData) != 0 && len(u.AuthService) != 0 && u.AuthService != USER_AUTH_SERVICE_LDAP {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user