MDL-37247 mod_forum: perform conditional checks before returning forums via web service