HPCC-11102

Allow Foreign flag for publishing a query.

Signed-off by: Miguel Vazquez <miguel.vazquez@lexisnexis.com>