Entity file forbidden access

System Information
  • Strapi Version: v4.0.0-beta.12
  • Operating System: macOS Big Sur 11.5.2
  • Database: SQLite
  • Node Version: v16.9.1
  • NPM Version: 7.21.1
  • 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.