Add allow_account_deletion to ApplicationSettings
requested to merge gitlab-jh/jh-team/gitlab:add-deleting-account-disabled-for-users-to-application-settings into master
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
A
and 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
B
and sign in. - Open another browser window and sign in with admin account.
- Go to
Admin
->General
->Account and limit
section. - Uncheck the checkbox
Allows users to delete their own accounts
and 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 account
section.
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