]> source.dussan.org Git - gitea.git/commit
Fix rename branch permission bug (#32066)
authorLunny Xiao <xiaolunwen@gmail.com>
Sun, 22 Sep 2024 18:08:27 +0000 (02:08 +0800)
committerGitHub <noreply@github.com>
Sun, 22 Sep 2024 18:08:27 +0000 (18:08 +0000)
commit9e0db1b6469079b18cfc4a416cdd6396d42f9816
tree6622bed12aa5ff64fdae2ce85809a364d9e91bc9
parentb594cec2bda6f861effedb2e8e0a7ebba191c0e9
Fix rename branch permission bug (#32066)

The previous implementation requires admin permission to rename branches
which should be write permission.

Fix #31993
routers/web/web.go
templates/repo/branch/list.tmpl
tests/integration/rename_branch_test.go