Imagefield module has undocumented dependence on upload module.
If upload module is not installed and 'view uploaded files' access is not provided to user, user will not be able to see imagefield pictures. There is no way for site administrator to know the cause of this problem.
Issue originates in imagefield.module function imagefield_file_download($file) where user_access('view uploaded files') is used.
To resolve issue, a new access should be created, say 'view imagefield' and used instead of 'view uploaded files'.
Delf.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | remove_upload_dependency_0.patch | 1.91 KB | bojanz |
| #2 | remove_upload_dependency.patch | 847 bytes | bojanz |
Comments
Comment #1
jpetso commentedAlso see this related filefield bug plus patch, which translates 1:1 to imagefield.
Comment #2
bojanz commentedThis patch should fix that...
Comment #3
bojanz commentedOn the other hand, I see no reason to have the access check at all.
Removing it (like jpetso did for filefield).
Reposting patch.
Comment #4
dopry commentedCommitted to DRUPAL-5--2 with new permission name. I don't want to leave people stranded who might have been using the view uploaded files permission. tnx.
Comment #5
(not verified) commented