Permissions has to be revoked after deleting an entity browser

Created on 21 December 2022, almost 2 years ago
Updated 14 July 2024, 4 months ago

Problem/Motivation

In Drupal 10 permission must exist. After an entity browser is deleted permissions like 'access ' . $browser->id() . ' entity browser pages' should be revoked from all roles, otherwise, a runtime exception will be thrown.
See https://www.drupal.org/node/3193348

Steps to reproduce

  • Create an entity browser
  • Add authenticated role the "access entity browser pages" permission
  • Check if permission is written in user.role.authenticated.yml configuration
  • Delete the entity browser created in step 1
  • New config export shows that permission is still in the yml
  • A runtime exception is not thrown

Proposed resolution

Revoke permission in postDelete function

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

2.8

Component

Deprecation updates

Created by

🇩🇪Germany mvogel

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