When using this module, I get "Access denied" errors on all IMCE private files that I try to download. I'm using Drupal-7.50.
It looks like the issue may be occurring in the imce_private_files_simple() and imce_private_files_passthrough() functions in imce_private_files.module as they return either -1 or null, but the Drupal file_download() function expects an array of at least one header, otherwise it will automatically return drupal_access_denied().
Will attach a patch below.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | imce_private_files-2775105-3-D7.patch | 1.37 KB | Ayoka |
| #2 | imce_private_files-2775105-1-D7.patch | 644 bytes | Ayoka |
Comments
Comment #2
Ayoka commentedAdded a patch
Comment #3
Ayoka commentedTweaked the comments on the changed functions to match the changes. (otherwise, the patch is functionally the same as before)
Comment #4
joelpittet