User needs permission to delete any media to upload images

Created on 31 July 2025, 13 days ago

Problem/Motivation

User needs to have this permission enabled to be able to upload an image. When not, the uploaders gets stock and it does not create the media entity.

Context:
Drupal Version 10.5.1
Hosted on Pantheon with Lando local and Composer
Media Library Version: 10.5.1
Layout Builder Modal Version: 2.0.0

Steps to reproduce

  1. Set up a testing site with Layout Builder Modal and Media Library
  2. Create a block type with an entity reference media image
  3. Create an editor role with access to Entity Browser, Media Image, and the new block type
  4. Use Media Library on the block form Display
  5. Logged in with a editor user, add a block on a Page Layout
  6. Try uploading an image from your local

Proposed resolution

Remaining tasks

  1. First, I would like someone to help me test this on a clean installation

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

10.5 ✨

Component

media system

Created by

πŸ‡ΊπŸ‡ΈUnited States anilu@ Houston, TX

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

Comments & Activities

  • Issue created by @anilu@
  • πŸ‡ΊπŸ‡ΈUnited States anilu@ Houston, TX

    I added a Screen Shop where the user gets stock.

  • πŸ‡ΊπŸ‡ΈUnited States anilu@ Houston, TX

    I found this error on a kind of new website with Drupal 10.5.1. But, I think we should probably test this on a clean set up and using D11 to check if there are other modules involved.

  • πŸ‡³πŸ‡ΏNew Zealand quietone

    In Drupal core changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies β†’ . Thanks for reporting the version this bug was discovered in.

Production build 0.71.5 2024