dnnsoftware / Dnn.Platform

DNN (formerly DotNetNuke) is the leading open source web content management platform (CMS) in the Microsoft ecosystem.
https://dnncommunity.org/
MIT License
1.02k stars 747 forks source link

[Enhancement]: Better confirmation for portal deletion #6040

Open DanielBolef opened 4 months ago

DanielBolef commented 4 months ago

Is there an existing issue for this?

Description of problem

A super user can delete a portal in just 3 clicks (PersonaBar:Sites -> Delete Site -> "Yes"). The current confirmation only displays the portal name. This does little to prevent a careless user from deleting portals with names similar to the intended portal, or if they have navigated the wrong domain by mistake (say a production site instead of a test site).

Description of solution

Make it more difficult to delete portals. Open to ideas here, but one I thought of is: a confirmation that requires you to input the full URL of the site.

Description of alternatives considered

Implement something that does a complete portal backup when a portal is deleted. Then it could be fully restored if the deletion was a mistake. While I think this would be nice to have anyway, it's more difficult to implement and if a user is trying to do cleanup or something they may go delete the backup too.

Anything else?

This is not just theory, this happened by accident on a site I help maintain. A super user was trying to clean up old portals on a test site, and somehow ended up on the production site and clicked delete on an active portal.

Do you be plan to contribute code for this enhancement?

Would you be interested in sponsoring this enhancement?

Code of Conduct