0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-11 11:25:42 +02:00

Fix create branch permission

This commit is contained in:
Lunny Xiao 2024-12-07 21:13:49 -08:00
parent a81c785918
commit da7f700d28
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -3,7 +3,8 @@
<span class="text"><strong>{{ctx.Locale.Tr "repo.issues.development"}}</strong></span> <span class="text"><strong>{{ctx.Locale.Tr "repo.issues.development"}}</strong></span>
<div class="ui devlinks list"> <div class="ui devlinks list">
{{if not .Issue.IsClosed}} {{/* AllowedRepos not empty means login user can create new branch in some of the repositories */}}
{{if and (not .Issue.IsClosed) .AllowedRepos}}
<div class="tw-items-center"> <div class="tw-items-center">
<a class="tw-mt-1 fluid ui show-modal" data-modal="#create_branch">{{ctx.Locale.Tr "repo.branch.new_branch"}}</a> <a class="tw-mt-1 fluid ui show-modal" data-modal="#create_branch">{{ctx.Locale.Tr "repo.branch.new_branch"}}</a>
</div> </div>