diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-03-04 15:50:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-04 07:50:21 +0000 |
commit | 8e12ba34bab7e728ac93ccfaecbe91e053ef1c89 (patch) | |
tree | ed8b8a77e90fd3b29cfb93adaf89e6840efe90a6 /templates | |
parent | d769b664dedb5f63b73146b58b21c0a772c2630d (diff) | |
download | gitea-8e12ba34bab7e728ac93ccfaecbe91e053ef1c89.tar.gz gitea-8e12ba34bab7e728ac93ccfaecbe91e053ef1c89.zip |
Allow options to disable user ssh keys configuration from the interface on app.ini (#29447)
Follow #29275
Extract from #20549
Fix #24716
---------
Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/settings/keys.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/user/settings/keys.tmpl b/templates/user/settings/keys.tmpl index a44bf50048..e0f5e426ae 100644 --- a/templates/user/settings/keys.tmpl +++ b/templates/user/settings/keys.tmpl @@ -1,6 +1,8 @@ {{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings sshkeys")}} <div class="user-setting-content"> - {{template "user/settings/keys_ssh" .}} + {{if not ($.UserDisabledFeatures.Contains "manage_ssh_keys")}} + {{template "user/settings/keys_ssh" .}} + {{end}} {{template "user/settings/keys_principal" .}} {{if not ($.UserDisabledFeatures.Contains "manage_gpg_keys")}} {{template "user/settings/keys_gpg" .}} |