IsLocal returns true if the user is created as local account.
()
| 1288 | |
| 1289 | // IsLocal returns true if the user is created as local account. |
| 1290 | func (u *User) IsLocal() bool { |
| 1291 | return u.LoginSource <= 0 |
| 1292 | } |
| 1293 | |
| 1294 | // IsOrganization returns true if the user is an organization. |
| 1295 | func (u *User) IsOrganization() bool { |
no outgoing calls
no test coverage detected