mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-15 23:40:26 +00:00
A [safeguard][0] was added to ensure a team member is not an organization. A [discussion][1] concluded that remote users should not yet be allowed to be team members, at least until it is implemented (by F3 or ActivityPub). As [gof3 v3.11.25][2] has support for [teams][3], remote users need to be added as an eligible team member, otherwise compliance tests for the Forgejo internal driver [implementation][4] fail. The IsUserByID function is renamed to IsAnEligibleTeamMemberByID to clarify its purpose. The TestIsUserConsistency is removed because the IsUser function is used in [an entirely different context][5] and there is no reason to ensure both are consistent. A unit test is added for IsAnEligibleTeamMemberByID as a replacement and also verifies organizations are not considered eligible. [0]: https://codeberg.org/forgejo/forgejo/pulls/9757 [1]: https://codeberg.org/forgejo/forgejo/pulls/9757#issuecomment-7802255 [2]: https://code.forgejo.org/f3/gof3/releases/tag/v3.11.25 [3]: https://code.forgejo.org/f3/gof3/pulls/484/files [4]: |
||
|---|---|---|
| .. | ||
| TestFindOrgs | ||
| TestInconsistentOwnerTeam | ||
| main_test.go | ||
| org.go | ||
| org_list.go | ||
| org_list_test.go | ||
| org_repo.go | ||
| org_test.go | ||
| org_user.go | ||
| org_user_test.go | ||
| team.go | ||
| team_invite.go | ||
| team_invite_test.go | ||
| team_list.go | ||
| team_repo.go | ||
| team_test.go | ||
| team_unit.go | ||
| team_user.go | ||