The search API, scope `projects`, doesn't return the permissions

Summary

When you use the search API, with scope `projects, the result do not include user permissions for the listed projects.

Steps to reproduce

  • Call the search API with a valid user token
  • In the response, there isn't a field permissions

What is the expected correct behavior?

Since when you show a list of projects usually you show also the access level for the user, I expect the search API to return such information, instead of having to do other 20 API requests, one for listed project, to know the access level

Output of checks

This bug happens on GitLab.com