fix(repo): centralize repository-scoped authorization (#39063)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
bircni
2026-08-26 20:12:53 +08:00
committed by GitHub
co-authored by wxiaoguang
parent 90c43e8e78
commit e21c37703e
27 changed files with 383 additions and 476 deletions
+2 -2
View File
@@ -780,7 +780,7 @@
</div>
{{end}}
{{if .Permission.IsOwner}}
{{if $.CanManagerDangerZone}}
<h4 class="ui top attached error header">
{{ctx.Locale.Tr "repo.settings.danger_zone"}}
</h4>
@@ -899,7 +899,7 @@
</div>
{{template "repo/settings/layout_footer" .}}
{{if .Permission.IsOwner}}
{{if $.CanManagerDangerZone}}
{{if .Repository.IsMirror}}
<div class="ui small modal" id="convert-mirror-repo-modal">
<div class="header">