[ticket/12078] Check for f_delete when a user attempts to permanently delete

PHPBB3-12078
Merge pull request #1939 from prototech/ticket/12078

[ticket/12078] Check for f_delete when a user attempts to permanently delete a post.