mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 12:14:27 +02:00
fix(repo): centralize repository-scoped authorization (#39063)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
1 parent
90c43e8e78
commit
e21c37703e
27 files changed
+383
-476
No files matched your search
@@ -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