aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-09-23 02:08:27 +0800
committerGitHub <noreply@github.com>2024-09-22 18:08:27 +0000
commit9e0db1b6469079b18cfc4a416cdd6396d42f9816 (patch)
tree6622bed12aa5ff64fdae2ce85809a364d9e91bc9 /templates/repo
parentb594cec2bda6f861effedb2e8e0a7ebba191c0e9 (diff)
downloadgitea-9e0db1b6469079b18cfc4a416cdd6396d42f9816.tar.gz
gitea-9e0db1b6469079b18cfc4a416cdd6396d42f9816.zip
Fix rename branch permission bug (#32066)
The previous implementation requires admin permission to rename branches which should be write permission. Fix #31993
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/branch/list.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl
index 3c8e5846d7..f5d709bb16 100644
--- a/templates/repo/branch/list.tmpl
+++ b/templates/repo/branch/list.tmpl
@@ -240,7 +240,7 @@
<div class="header">
{{ctx.Locale.Tr "repo.settings.rename_branch"}}
</div>
- <form class="ui form" action="{{$.Repository.Link}}/settings/rename_branch" method="post">
+ <form class="ui form" action="{{$.Repository.Link}}/branches/rename" method="post">
<div class="content">
{{.CsrfTokenHtml}}
<div class="field default-branch-warning">