user_picture upload fails during registration without published content access

Created on 25 July 2018, over 6 years ago
Updated 28 February 2023, about 2 years ago

If anonymous users don't have "View published content" permission, trying to upload an image in the user_picture field during user registration fails with an error "You do not have access to the referenced entity (file: [the file id])."

Steps to reproduce:

Create a new site.
Set "Who can register accounts?" to Visitors, but need approval.
Turn off "Require email verification".
Disable "View published content" permission for anonymous users.
Try to create a new account and try to upload a picture.

result:
error on Picture field eg "You do not have access to the referenced entity (file: 4)."

The error will block creation of the account.

πŸ› Bug report
Status

Closed: works as designed

Version

10.1 ✨

Component
User systemΒ  β†’

Last updated 9 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States brad.bulger

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024