Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Under 7.13, the accessibility of files attached to forum topics or forum comments correctly obeys the accessibility of the forum topic node, at least when controlled by the Forum Access module.
So far I've traced this back to file_get_file_references(), which returns the following under 7.13:
Under 7.14, file_get_file_references() returns nothing (because the query returns nothing), ultimately resulting in a 403 for the file for everyone but user 1.
Comment | File | Size | Author |
---|
Comments
Comment #1
BerdirCould this be related to the messed up node access query pointed out in #1571104: Can't access non-node entities with EntityFieldQuery ?
Comment #2
salvisYes, indeed, the patch in #1571104-13: Can't access non-node entities with EntityFieldQuery fixes this.