Merge pull request #2585 from mattermost/fix-ldap-email

Fix for ldap ability to change email
This commit is contained in:
Joram Wilander
2016-03-31 08:21:33 -04:00
+1 -1
View File
@@ -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