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 f6fafe64f..454779b9e 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -393,6 +393,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 { |