Media field forbidden access

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

I have a content type that has a media field. When querying that object (GraphQL) im getting error “FORBIDDEN” for that file, and get null instead of a file. All other relations work correctly. This happens with both authenticated and public user and all users permissions for both roles are set to “allow”. I also checked that field is not configured as “private”

When I query file object itself (uploadFiles or single uploadFile by id queries) I can get them without any issues. This only happens when I query it from other object that it is connected to.