Avatars assigned to roles showing up to all users

HS - December 3, 2008 - 16:19
Project:Avatar Selection
Version:6.x-1.5
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

Avatars that I have assigned to a role for example the user role "staff" are showing up to all users. Anonymous users who are registering for the first time in the registration page have access to the avatar and it is available for selection although I have checked the option to allow only the roles assigned to see the avatar.

#1

stella - December 3, 2008 - 17:17

I think this issue might already solved in the dev version. Would you mind upgrading to the dev version to see if it fixes the problem for you? There shouldn't be any problem with it - it's quite stable. Just run update.php after upgrading.

Cheers,
Stella

#2

HS - December 4, 2008 - 01:03

Hi Stella,

Thank you for responding. I just upgraded to Dev and no change. I uploaded a new image after upgrading and tried to assign it to a role and it still didnt work. Cleared caches as well and re-attempted to of no avail.

Thank you.

#3

stella - February 9, 2009 - 01:00
Status:active» postponed (maintainer needs more info)

Can you try the dev version of the module (perfectly stable!) and see if the problem still occurs? I can't reproduce it at present.

Cheers,
Stella

#4

lchanggt - February 14, 2009 - 17:03

Hi Stella,

I'm having the same issue. To re-create the problem:
1. Upload image avatars
2. Pick a couple of avatars and set them to be only available to a role.
3. Going to user/register to create a new account, you'll see that you are able to see all avatars for all roles.

However, if you are already logged in as a user and selecting an avatar, this isn't a problem, only on new user registration. I think I may have fixed the problem and it seems to be working. On line 178:

  $selects = _avatar_selection_image_list($anon_user, "", 0, $page * $avatars_per_page, $avatars_per_page);

Change that to:
  $selects = _avatar_selection_image_list($anon_user, "role", 0, $page * $avatars_per_page, $avatars_per_page);

#5

stella - February 14, 2009 - 18:38

@lchanggt: have you tried the latest dev version? I can't reproduce it using that, so it may be that I've fixed it already.

#6

HS - April 5, 2009 - 14:37

Stella the issue was not solved in the dev release you spoke of. This has led me to use another module like user badges to display moderator buttons. It would be ideal if this module could take care of that need. One less module to work with.

The reason you are not seeing this bug reported by more, is because the need to display avatar by role, and the fact that admins actually verifying if the option works, is probably a small group.

That doesn't necessarily mean the issue is isolated to a few people who may be producing the error to their own incompetence.

#7

stella - April 16, 2009 - 17:01
Status:postponed (maintainer needs more info)» active

#8

stella - June 7, 2009 - 22:10
Status:active» fixed

This should be fixed in the latest dev release (available later today), as part of #359570: Warning displayed when no avatar is selected

#9

System Message - June 21, 2009 - 22:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.