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 |
Jump to:
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
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
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
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
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
@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
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
#8
This should be fixed in the latest dev release (available later today), as part of #359570: Warning displayed when no avatar is selected
#9
Automatically closed -- issue fixed for 2 weeks with no activity.