]> source.dussan.org Git - gitea.git/commit
Enhance USER_DISABLED_FEATURES to allow disabling change username or full name (...
authorZisu Zhang <thezzisu@gmail.com>
Sat, 5 Oct 2024 20:41:38 +0000 (04:41 +0800)
committerGitHub <noreply@github.com>
Sat, 5 Oct 2024 20:41:38 +0000 (20:41 +0000)
commit66923e02d20e9d5b68ab20fbcdebd779eb4dbaf9
tree08af3f6b45b7e9d25ccc4c1a64bf8c62f9227799
parent6a4eb126bd911e36489979954f0b3a3ebc1ae19f
Enhance USER_DISABLED_FEATURES to allow disabling change username or full name (#31959)

Fix #31958
Enhanced `USER_DISABLED_FEATURES`(also `EXTERNAL_USER_DISABLE_FEATURES`)
option in `[admin]` section.
Added following values:
- `change_username`: Disable change username
- `change_full_name`: Disable change full name
---

Progress:
- [x] Update code
- [x] Update translations
custom/conf/app.example.ini
modules/setting/admin.go
options/locale/locale_en-US.ini
routers/web/user/setting/profile.go
templates/user/settings/profile.tmpl