momentum-mod / website

Momentum Mod's main website.
https://momentum-mod.org
MIT License
58 stars 59 forks source link

Refactor /maps/:mapID DELETE to not delete DB entry #847

Closed tsa96 closed 6 months ago

tsa96 commented 1 year ago

From discussion with Nick last week, we've realised there's no good reason to ever completely delete a map entry from DB, just to disable it (so only mods/admins can access, and only admins can re-enable).

The one thing we do still want, just in case anyone uploads something we don't want on our servers, is the ability to delete the underlying BSP/VMFs - either for disk space or if it's something really foul.

This is a destructive action so only allow admins.

tsa96 commented 8 months ago

Just to clarify, this endpoint should delete all related files from file store, nothing else.