Media library is showing 'is required message' while the user has no access to the field

Created on 2 March 2022, over 2 years ago
Updated 18 May 2023, about 1 year ago

Problem/Motivation

When a user has no access to the media library item, the media library is still validating the field. This leads to a message 'The image field is required', while the user sees no field to upload a widget.

Steps to reproduce

  • Configure a content type with a required Media field and configure the form display to use the media library widget
  • Enable content translation, and mark your media field as not translatable.
  • Configure translation to hide fields that are not translatable.
  • Create a new node with an image.
  • Translate the node and click on save

Proposed resolution

Add a check to see if the field was visible for the user

🐛 Bug report
Status

Fixed

Version

9.5

Component
Media 

Last updated 39 minutes ago

Created by

🇧🇪Belgium nils.destoop

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.69.0 2024