Skip to content

Commit da7f700

Browse files
committed
Fix create branch permission
1 parent a81c785 commit da7f700

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/repo/issue/sidebar/development.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

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

0 commit comments

Comments
 (0)