aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/settings/keys.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/user/settings/keys.tmpl')
-rw-r--r--templates/user/settings/keys.tmpl4
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" .}}