summaryrefslogtreecommitdiffstats
path: root/templates/repo/create.tmpl
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2024-05-20 10:27:52 +0800
committerGitHub <noreply@github.com>2024-05-20 10:27:52 +0800
commitab33b7849f527f3924d3cac42db30ccca917c302 (patch)
treebbfa474fa179f75eb23767db38dfb5beae2950a8 /templates/repo/create.tmpl
parenta58498cc430fdc5756b8a8f893eb865c5e7080b6 (diff)
downloadgitea-ab33b7849f527f3924d3cac42db30ccca917c302.tar.gz
gitea-ab33b7849f527f3924d3cac42db30ccca917c302.zip
Fix "force private" logic (#31012) (#31021)
Backport #31012 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/repo/create.tmpl')
-rw-r--r--templates/repo/create.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl
index c1c8c2185e..2e1de244ea 100644
--- a/templates/repo/create.tmpl
+++ b/templates/repo/create.tmpl
@@ -50,7 +50,7 @@
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
- <input name="private" type="checkbox" checked readonly>
+ <input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>