diff options
Diffstat (limited to 'models/user/user.go')
-rw-r--r-- | models/user/user.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/models/user/user.go b/models/user/user.go index 3a2e4f19b..7bc88e773 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -394,6 +394,11 @@ func (u *User) IsOrganization() bool { return u.Type == UserTypeOrganization } +// IsIndividual returns true if user is actually a individual user. +func (u *User) IsIndividual() bool { + return u.Type == UserTypeIndividual +} + // DisplayName returns full name if it's not empty, // returns username otherwise. func (u *User) DisplayName() string { |