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.

Comments

jpetso’s picture

Also see this related filefield bug plus patch, which translates 1:1 to imagefield.

bojanz’s picture

Status: Active » Needs review
StatusFileSize
new847 bytes

This patch should fix that...

bojanz’s picture

StatusFileSize
new1.91 KB

On the other hand, I see no reason to have the access check at all.
Removing it (like jpetso did for filefield).

Reposting patch.

dopry’s picture

Status: Needs review » Fixed

Committed 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)