diff options
Diffstat (limited to 'model/user.go')
-rw-r--r-- | model/user.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/model/user.go b/model/user.go index 7622e48f0..173fe2b4e 100644 --- a/model/user.go +++ b/model/user.go @@ -358,6 +358,13 @@ func (u *User) IsSSOUser() bool { return false } +func (u *User) IsLDAPUser() bool { + if u.AuthService == USER_AUTH_SERVICE_LDAP { + return true + } + return false +} + func (u *User) PreExport() { u.Password = "" u.AuthData = "" |