Vote #81171
完了Require explicit confirmation when deleting a user or a project
0%
説明
It happens quite often at "Planio":https://plan.io/redmine-hosting that we have to support users who accidentally deleted something. Often, a Javascript alert box is simply dismissed by the user without actually grasping it's message, leading to unintended consequences. Especially in the case of deleted user accounts, a lot of information is lost and hard to restore from a backup.
The first patch in this issue introduces an explicit confirmation page (similar to when deleting a project) which requires to enter the login of the user to be deleted in order to confirm the deletion. It also suggests locking the user as a safer option instead and offers a button to do so.
The second patch changes the project deletion page to require the user to enter the identifier of the project to be deleted, instead of just ticking a checkbox, just to make it a bit harder to delete the wrong project by accident.
journals
--------------------------------------------------------------------------------
Very nice addition and it works well from my tests.
I've added the patches to CI, if all the tests pass, I think we can deliver this in version:"4.2.0" and use this implementation to improve other object deletion (like #33071).
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Tests pass https://gitlab.com/redmine-org/redmine/-/pipelines/227153244 (except system tests, but there are other issues there).
--------------------------------------------------------------------------------
It is a great improvement. I think there is no reason not to deliver this new feature in Redmine 4.2.0.
--------------------------------------------------------------------------------
Committed the patches. Thank you for your contribution.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Reopened,33071,Prevent accidental deletion of contents with sudo mode
relates,New,35373,Improve project deletion warning text