Odd one here - all my images are fine as long as you're an authorized user, but can't be seen at all if you're unauthorized.

They don't appear in views or even in the full node; the source code in both cases doesn't display the Only local images are allowed. code at all, so it's not just something funny in the CSS/theme/browser setup preventing it from being displayed. I don't have TAC or any other node-visibility module installed that I'm aware of.

If I give unauthorized users permission to Administer Nodes in the access controls, then the image thumbnails all become magically visible, but the image previews shown in the node show as a missing image.

I've attached the site documentation. Help, please?

CommentFileSizeAuthor
Site documentation KnowledgeView.txt35.31 KBadam_b

Comments

drewish’s picture

Status: Active » Closed (duplicate)

this is a duplicate of http://drupal.org/node/158094

adam_b’s picture

Title: Images not visible to unauthorized users » Images only visible to specific role

Many thanks for the quick response, but I'm not sure it's the same issue:
- the original report in http://drupal.org/node/158094 says that the images were only visible to user 1 - that's not the case for me; other authorized users can see them
- I've disabled the core Upload module, and that hasn't fixed the problem

I've tested this some more and it's not just an issue of whether you're an authorized user or not - the images are only shown to user 1 and members of the KV role. If you're an authorized user but not part of the KV role, the effect is the same as if you're an unauthorized user - so I've changed the issue title to reflect this.

I'm having the same issue on another Drupal implementation on the same server, and that actually won't let me disable the Upload module - although I've disabled, deleted and uninstalled the Image module, it's still claiming that Upload is required by Image. Don't know what's going on there.

Would it be worth trying the dev version of the module?

drewish’s picture

Status: Closed (duplicate) » Active

okay, well i'll take another look at it. do you have any node access modules enabled?

adam_b’s picture

No I don't - see the attached site documentation which lists the modules used.

However, I have been doing a lot of experimentation on this site, so there are a lot of modules which have been there in the past but aren't now. They've all been disabled and uninstalled and I've used the devel module to clear the cache, but I don't know if something may have been left over.

keenan83’s picture

By allowing anonymous user to have the privilege of viewing uploaded files allowed them to see the images.

adam_b’s picture

Thanks, but there's no "view uploaded files" permission on my access-control page - perhaps you have it from some other module?

keenan83’s picture

hmmm thats odd. The option should be under the upload module permissions.

drewish’s picture

Status: Active » Postponed (maintainer needs more info)

i'm still not convinced this isn't a duplicate of http://drupal.org/node/158094

adam_b’s picture

Well, it might be related - I rebuilt everything from scratch on a new site without the upload module and found that I was having problems with unauthorized users being unable to see the images until I changed the binary-download mode from drupal-only to general HTTP.

I'll have to rummage around with it some more, but I seem to be able to work with it in the meantime - thanks.

drewish’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
doublejosh’s picture

Had this same problem and looked through the duplicate post and related...

The issue was whether attached images were 'published' by default. I had taken them off so they wouldn't end up as postings in-and-of-themselves. But that is related to 'promote to front page'. I just happened to deselect both at the same time not knowing the difference.

The symptom shows up as a user-based issue because admins will see all attachments, and the owner of a post will see only theirs, while anonymous users will see none.

Hope that helps!

bdimaggio’s picture

Just wanted to note that #9 solved the problem for me. Thanks Adam!

580mall’s picture

I still have this problem in Drupal 6.8 + imagefield 3.0 alpha 2