mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 22:07:55 +01:00
fd2c250b52
- Backport of #22560
- Currently the function `GetUsersWhoCanCreateOrgRepo` uses a query that
is able to have duplicated users in the result, this is can happen under
the condition that a user is in team that either is the owner team or
has permission to create organization repositories.
- Add test code to simulate the above condition for user 3,
[`TestGetUsersWhoCanCreateOrgRepo`](
|
||
---|---|---|
.. | ||
main_test.go | ||
mini_org.go | ||
org_repo.go | ||
org_test.go | ||
org_user_test.go | ||
org_user.go | ||
org.go | ||
team_invite_test.go | ||
team_invite.go | ||
team_repo.go | ||
team_test.go | ||
team_unit.go | ||
team_user.go | ||
team.go |