Filter out search results based on permissions to avoid bugs leaking data See merge request gitlab/gitlabhq!3496