Cannot Upload Profile Picture without adding all groups to uploaded avatars allowed groups
A user reported an issue where a specific user couldn’t upload a custom profile picture, despite being in trust level 2 and having the necessary permissions PeakProsperity. The issue seemed to be related to permissions, but the exact cause was unclear.
After troubleshooting, it was discovered that the problem was due to the uploaded_avatars_allowed_groups setting, which was set to trust_level_0PeakProsperity. This meant that users with higher trust levels couldn’t upload profile pictures.
However, it was expected that users with higher trust levels would automatically inherit the permissions of lower trust levels. pfaffman suggested that this might be a bug.
Further investigation revealed that the issue was related to group visibility. Changing the visibility of the TL0 group to Everyone fixed the issue JammyDodger. However, this means that the members of the trust level group can no longer be hidden.
The bug has been reported and is expected to be fixed in a future release JammyDodger. In the meantime, a workaround is to add all groups to the uploaded_avatars_allowed_groups setting or change the group visibility to Everyone.
I have a user who would like to upload a custom profile picture, but it won’t let him. I’ve never seen this issue with any of our other users. He’s in trust level 2, but even trust level 0 is set to allow uploaded profile pictures.
Does anybody know of some other setting I may be overlooking or unaware of? Thanks for any help. Screenshots below.
We have thousands of users and other people are able to upload images no problem, so I don’t think it has to do with authorized extensions. This user just doesn’t even see an upload option at all.
Is there anything special on how that user was created? Do you use DiscourseConnect? discourse connect overrides avatar also prevents users from uploading an avatar.
Other browsers do not work. This is definitely a permissions issue. And, the plot thickens because I just tested few other users and it seems to be happening for everybody (except admins from what I can tell).
Okay, I figured it out. I added every trust level and every possible group a user might be in to the list of allowed groups for uploading profile pictures:
However, previously it was only set to trust_level_0, so anybody with a trust level higher than TL0 was not able to upload profile pictures. The strange thing though is when I look at user profiles, everybody is in this group even if they’ve since been promoted to a higher trust level. Did something change in a recent release? It seems like if you specified TL0 as the required level for uploads that it would automatically grant that same permission to higher trust levels.
I think this may be a group visibility thing perhaps, if it’s stable.
Could you try changing the visibility of your TL0 group to ‘everyone’ in the group settings and see if that has the desired effect? (And reset uploaded_avatars_allowed_groups to just TL0)
TL0 group visibility was set to Group owners and moderators. Changing it to Everyone fixes the issue. So, unfortunately we cannot hide the members of trust level and still let people pick their own avatar. That seems strange, since why should one affect the other. Either they’re in the group or not.
Anyways, I’m okay to live with this if need be. At least I know. I’m going to leave the trust level groups hidden since that will open up cans of worms in my community, and just add the other groups so they can still edit their avatar.