GetOrganizationCount returns the count of organization membership that the user has. TODO(unknwon): This is also used in templates, which should be fixed by having a dedicated type `template.User`.
()
| 1440 | // TODO(unknwon): This is also used in templates, which should be fixed by |
| 1441 | // having a dedicated type `template.User`. |
| 1442 | func (u *User) GetOrganizationCount() (int64, error) { |
| 1443 | return Handle.Organizations().CountByUser(context.TODO(), u.ID) |
| 1444 | } |
| 1445 | |
| 1446 | // ShortName truncates and returns the username at most in given length. |
| 1447 | // |
nothing calls this directly
no test coverage detected