Adding non-existent permissions to a role is not allowed

Created on 25 June 2024, 6 months ago

Problem/Motivation

I received the following error when trying save the permissions page (/admin/people/permissions) or a text format configuration page:

RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "access_unpublished node blog_post". in Drupal\user\Entity\Role->calculateDependencies() (line 207 of /app/web/core/modules/user/src/Entity/Role.php).

I believe this is because I deleted the `blog_post` Content Type.

Steps to reproduce

  1. Create a Content Type
  2. Apply Entity Clone permissions to it
  3. Delete the Content Type you just created
  4. Save the permissions page (/admin/people/permissions)

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States capellic Austin, Texas

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

Comments & Activities

Production build 0.71.5 2024