I am trying to disallow certain users from viewing profile pictures, in tandem with this module...

However, if I go into the Permissions page and disallow permission to view the imagecache presets used by the ImageCache User Profile module, users without that permission are still able to see profile images. Is this supposed to happen?

I would imagine it would make more sense if this module would respect the ImageCache permissions - if someone shouldn't be able to see the user-profile imagecache preset, then this module shouldn't display anything on the profile page...

Alternatively, could you set up a new permission, "view profile picture"? That would accomplish what I'm trying to achieve as well...


andypost’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Category: bug » feature

This is doable. Actualy I see no reason to to change picture sizes with different presets.
Is there any reason to make different presets for different roles? Suppose this higly depends on theme layer.

Anyway I glad to review patches and possible approaches

geerlingguy’s picture

I don't think there would typically be a reason for different presets per role—that would be an edge case, I would think.

I took a cursory glance at the main module today and thought I might try taking a stab at the process, but might not have time in the coming weeks (I'm on a deadline right now, so we'll see).

thomas1977’s picture

I too would like to be able to set user permissions so that certain user roles (anonymous in particular) are disallowed from viewing certain images/imagecache presets (user pictures in particular). It seems that imagecache integrates to a certain extend with the user role permissions, but when I set the permissions nothing has changed; everybody still has access to seeing all images on the site (imagecache presets). Any news on this one? Would be highly appreciated.

barraponto’s picture

Issue tags: +DrupalWTF, +ImageCacheWTF

I never figured out what those permissions were for. I hardly ever remember enabling them on my projects, yet everyone sees all imagecaches without any problem... go figure.