I understand there's both soft deleting/hiding and hard deleting/perm delete.
However I'm tyring to code dive to find out what actually drives both these two permissions?
I've tracked down the DeletePostHandler
which I assume gets called when the DeletePostController
get hit, however we cannot find the logic that handles if the user has permission to actually do this?
We've got some scenarios where users are unable to hard delete comments, and potentially sometimes soft delete..... however we run headless for our app so need to understand how to make our UI understand the permissions and flow, e.g. If 10 mins have passed, and 5 users have mentioned the post, can it still be deleted? Or does it need soft deleting before hard deleting? etc
Thanks