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 /modules/setting/admin.go | |
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 'modules/setting/admin.go')
-rw-r--r-- | modules/setting/admin.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/setting/admin.go b/modules/setting/admin.go index 48a2ea9744..29bb947bc4 100644 --- a/modules/setting/admin.go +++ b/modules/setting/admin.go @@ -20,5 +20,6 @@ func loadAdminFrom(rootCfg ConfigProvider) { } const ( - UserFeatureDeletion = "deletion" + UserFeatureDeletion = "deletion" + UserFeatureManageGPGKeys = "manage_gpg_keys" ) |