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

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
bircniandwxiaoguang authored and GitHub committed 2026-08-26 20:12:53 +08:00
1 parent 90c43e8e78
commit e21c37703e
27 files changed
+383 -476

No files matched your search

+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">