Error when deleting media revisions

Created on 3 December 2024, 19 days ago

Problem/Motivation

When deleting media revisions, users are getting an error, as we can see in the attached file.

After some trials and errors, I found that the issue is caused by the revisionsCount query: https://git.drupalcode.org/project/media_revisions_ui/-/blob/2.1.x/src/F...

If a user with less privileges tries to delete a revision, the error is fired. If an admin does, there is no error.

Proposed resolution

I found that disabling the access check in the count query fixes the issue.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇧🇷Brazil tregismoreira

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

Comments & Activities

Production build 0.71.5 2024