Fix for adv search using Permissioned relationship