1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-11 21:17:19 +00:00

Re-enable transfer repo back from org to user account (#14807)

* re-enable transfer repo back from org to user account

* add test case
This commit is contained in:
6543
2021-02-26 10:08:09 +01:00
committed by GitHub
parent 8f389c5dfa
commit 77ce08976d
2 changed files with 3 additions and 2 deletions

View File

@ -450,6 +450,7 @@ func TestAPIRepoTransfer(t *testing.T) {
{ctxUserID: 1, newOwner: "user2", teams: &[]int64{2}, expectedStatus: http.StatusUnprocessableEntity},
{ctxUserID: 1, newOwner: "user3", teams: &[]int64{5}, expectedStatus: http.StatusForbidden},
{ctxUserID: 1, newOwner: "user3", teams: &[]int64{2}, expectedStatus: http.StatusAccepted},
{ctxUserID: 2, newOwner: "user2", teams: nil, expectedStatus: http.StatusAccepted},
}
defer prepareTestEnv(t)()