IsUserOrgOwner returns true if the user is in the owner team 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)
| 1422 | // TODO(unknwon): This is also used in templates, which should be fixed by |
| 1423 | // having a dedicated type `template.User`. |
| 1424 | func (u *User) IsUserOrgOwner(orgID int64) bool { |
| 1425 | return IsOrganizationOwner(orgID, u.ID) |
| 1426 | } |
| 1427 | |
| 1428 | // IsPublicMember returns true if the user has public membership of the given |
| 1429 | // organization. |
nothing calls this directly
no test coverage detected