Add allow_account_deletion to ApplicationSettings
What does this MR do and why?
Related to issue #26053 (closed)
Add a configuration to ApplicationSettings to control whether users can delete their account. The feature is only available in EE version.
This is in the Admin -> General -> Account and limit section.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- Sign up a new user
Aand sign in. - Go to the
Preferences->Account, clickDelete account. - You can delete the account
A. (That's what we expect). - Sign up a new user
Band sign in. - Open another browser window and sign in with admin account.
- Go to
Admin->General->Account and limitsection. - Uncheck the checkbox
Allows users to delete their own accountsand clickSave changes. - Enable feature flag
deleting_account_disabled_for_users. - Go back to the browser window with user
B. - Go to the
Preferences->Account, clickDelete account. - You cannot find the
Delete accountsection.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Zehua Zhang
