Problem/Motivation

As pointed out in https://www.drupal.org/project/edit_media_modal/issues/3352274#comment-1..., there is a problem with the 'Edit media' button when the user doesn't have "update" permission on the media entity. The button simply fails to do anything.

Steps to reproduce

1. As a user with limited permissions, embed an image that you don't have permission to edit.
2. Click the 'Edit media' pencil button and note that nothing happens.

Proposed resolution

Since the user can't edit the media, perhaps just show them the media entity's "view" page so they can see more context about which media entity is embedded. Or at least display some sort of error message informing them of the permission issue.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

richarddavies created an issue. See original summary.

blade_ukraine’s picture

Version: 2.0.1 » 2.1.0
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

blade_ukraine’s picture

Status: Fixed » Closed (fixed)