diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-02-23 05:56:05 +0800 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-02-22 21:56:05 +0000 |
commit | 4a2fbbeb101555129ab83f972c41936113f1f6c2 (patch) | |
tree | c49f69b37865c6a4cad19dd81141173b8fa680ea /templates | |
parent | 134e55510eda8c3c6d61da18ee97e3243c6e3bc2 (diff) | |
download | gitea-4a2fbbeb101555129ab83f972c41936113f1f6c2.tar.gz gitea-4a2fbbeb101555129ab83f972c41936113f1f6c2.zip |
fix bug user could change private repository to public when force private enabled. (#6156)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/settings/options.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 432f20e74f..94fbcbe651 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -19,7 +19,7 @@ <div class="inline field"> <label>{{.i18n.Tr "repo.visibility"}}</label> <div class="ui checkbox"> - <input name="private" type="checkbox" {{if .Repository.IsPrivate}}checked{{end}}> + <input name="private" type="checkbox" {{if .Repository.IsPrivate}}checked{{end}}{{if and $.ForcePrivate .Repository.IsPrivate}} readonly{{end}}> <label>{{.i18n.Tr "repo.visibility_helper" | Safe}} {{if .Repository.NumForks}}<span class="text red">{{.i18n.Tr "repo.visibility_fork_helper"}}</span>{{end}}</label> </div> </div> |