[ticket/13158] Allow adding extra auth checks when the user is posting

https://tracker.phpbb.com/browse/PHPBB3-13158
PHPBB3-13158
#3212 had the wrong branch