[ticket/13146] Allow changing the result of calling get_forums_visibility_sql

https://tracker.phpbb.com/browse/PHPBB3-13146

PHPBB3-13146