Fix bug with access control filtering of search results