mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-08 14:03:24 +09:00
fix(repo): centralize repository-scoped authorization (#39063)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user