diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-03-30 15:04:51 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-03-30 15:12:53 -0400 |
commit | 9a82d5d3c5a3f06983f5d7f6391932cf439e44a9 (patch) | |
tree | 3ec87d999947da0f77fa34526de3e08abb80ca14 /model | |
parent | 74d2c5b6ceb507e11032c79252f1778e7512d612 (diff) | |
download | chat-9a82d5d3c5a3f06983f5d7f6391932cf439e44a9.tar.gz chat-9a82d5d3c5a3f06983f5d7f6391932cf439e44a9.tar.bz2 chat-9a82d5d3c5a3f06983f5d7f6391932cf439e44a9.zip |
Fix for ldap ability to change email
Diffstat (limited to 'model')
-rw-r--r-- | model/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/model/user.go b/model/user.go index f8f2fdb70..7622e48f0 100644 --- a/model/user.go +++ b/model/user.go @@ -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 |