mirror of
https://github.com/go-gitea/gitea
synced 2025-01-05 07:24:25 +00:00
Fix create branch permission
This commit is contained in:
parent
a81c785918
commit
da7f700d28
@ -3,7 +3,8 @@
|
||||
|
||||
<span class="text"><strong>{{ctx.Locale.Tr "repo.issues.development"}}</strong></span>
|
||||
<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">
|
||||
<a class="tw-mt-1 fluid ui show-modal" data-modal="#create_branch">{{ctx.Locale.Tr "repo.branch.new_branch"}}</a>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user