diff options
Diffstat (limited to 'model')
-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 76c3772cb..876ba70e7 100644 --- a/model/user.go +++ b/model/user.go @@ -376,6 +376,13 @@ func IsInRole(userRoles string, inRole string) bool { return false } +func (u *User) IsSSOUser() bool { + if u.AuthService != "" && u.AuthService != USER_AUTH_SERVICE_EMAIL { + return true + } + return false +} + func (u *User) IsOAuthUser() bool { if u.AuthService == USER_AUTH_SERVICE_GITLAB { return true |