diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-03-02 09:21:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-02 01:21:01 +0000 |
commit | 9de5e39e25009bacc5ca201ed97e9cbb623e56e9 (patch) | |
tree | 1df6d30974e7b7563d23c22db52533247eb73772 /templates/user/settings | |
parent | 85ad4a0f7d3468a2e79270fd36f544202560143b (diff) | |
download | gitea-9de5e39e25009bacc5ca201ed97e9cbb623e56e9.tar.gz gitea-9de5e39e25009bacc5ca201ed97e9cbb623e56e9.zip |
Allow options to disable user gpg keys configuration from the interface on app.ini (#29486)
Follow #29447
Fix #29454
Extract from #20549
Diffstat (limited to 'templates/user/settings')
-rw-r--r-- | templates/user/settings/keys.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/user/settings/keys.tmpl b/templates/user/settings/keys.tmpl index 93037e7e28..a44bf50048 100644 --- a/templates/user/settings/keys.tmpl +++ b/templates/user/settings/keys.tmpl @@ -2,6 +2,8 @@ <div class="user-setting-content"> {{template "user/settings/keys_ssh" .}} {{template "user/settings/keys_principal" .}} + {{if not ($.UserDisabledFeatures.Contains "manage_gpg_keys")}} {{template "user/settings/keys_gpg" .}} + {{end}} </div> {{template "user/settings/layout_footer" .}} |