[ticket/12518] Add event to overwrite the allow edit and delete conditions

PHPBB3-12518
[ticket/12518] Add event to overwrite the cannot edit condition in posting.php

PHPBB3-12518