diff options
author | 6543 <6543@obermui.de> | 2021-05-08 14:11:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 14:11:36 +0200 |
commit | e2786147539909eaef2bc39fb728a10b88277d31 (patch) | |
tree | f6670b39eb552a094c0882b8c954c0d65f16c398 /routers/api/v1/api.go | |
parent | 272bbb200d77ca520e335588c771301f9439f393 (diff) | |
download | gitea-e2786147539909eaef2bc39fb728a10b88277d31.tar.gz gitea-e2786147539909eaef2bc39fb728a10b88277d31.zip |
[API] make change repo settings work on empty repos (#15778)
* API: Fix #15602
* Add TEST
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 05b95d6d5f..0876f3273c 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -712,7 +712,7 @@ func Routes() *web.Route { m.Group("/{username}/{reponame}", func() { m.Combo("").Get(reqAnyRepoReader(), repo.Get). Delete(reqToken(), reqOwner(), repo.Delete). - Patch(reqToken(), reqAdmin(), context.RepoRefForAPI, bind(api.EditRepoOption{}), repo.Edit) + Patch(reqToken(), reqAdmin(), bind(api.EditRepoOption{}), repo.Edit) m.Post("/transfer", reqOwner(), bind(api.TransferRepoOption{}), repo.Transfer) m.Combo("/notifications"). Get(reqToken(), notify.ListRepoNotifications). |