IsOrganization returns true if the user is an organization.
()
| 1293 | |
| 1294 | // IsOrganization returns true if the user is an organization. |
| 1295 | func (u *User) IsOrganization() bool { |
| 1296 | return u.Type == UserTypeOrganization |
| 1297 | } |
| 1298 | |
| 1299 | // APIFormat returns the API format of a user. |
| 1300 | func (u *User) APIFormat() *api.User { |
no outgoing calls
no test coverage detected