Fix create branch permission

This commit is contained in:
Lunny Xiao committed 2024-12-07 21:13:49 -08:00
1 parent a81c785918
commit da7f700d28
1 file changed
+2 -1
@@ -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>