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.
Problem/Motivation
Non admin users can't view files attached to CPS reviews. This is because cps review basically shuts down all entity access in a way that doesn't make a lot of sense.
Credit goes to Earl Miles.
Testing
Flush caches to ensure module_implements catches the new hook.
Create a site version and a piece of content; attach a file as a review.
Log in or masquerade as a a non-admin user.
Ensure you can click on and download the file.
Proposed resolution
Implement a cps_review file download access alter to ensure that any files attached to cps reviews are downloadable given the right permissions.
Remaining tasks
Review.
Comment | File | Size | Author |
---|---|---|---|
hook_file_download_access.patch | 637 bytes | marco | |
Comments