IsPublicMember returns true if the user has public membership of the given organization. TODO(unknwon): This is also used in templates, which should be fixed by having a dedicated type `template.User`.
(orgID int64)
| 1431 | // TODO(unknwon): This is also used in templates, which should be fixed by |
| 1432 | // having a dedicated type `template.User`. |
| 1433 | func (u *User) IsPublicMember(orgID int64) bool { |
| 1434 | return IsPublicMembership(orgID, u.ID) |
| 1435 | } |
| 1436 | |
| 1437 | // GetOrganizationCount returns the count of organization membership that the |
| 1438 | // user has. |
nothing calls this directly
no test coverage detected