Deleting a content type does not remove permissions.

Created on 20 May 2024, about 1 month ago
Updated 22 May 2024, about 1 month ago

Problem/Motivation

If a content type with overridden permissions is deleted the associated roles are not removed. Attempting to delete further content types or uninstall the module results in an error. For instance after deleting 'event' type and then attempting to remove another content type:

Uncaught PHP Exception RuntimeException: "Adding non-existent permissions to a role is not allowed. The incorrect permissions are "override event promote to front page option"." at [PATH]/web/core/modules/user/src/Entity/Role.php line 207
🐛 Bug report
Status

Active

Version

2.8

Component

Code

Created by

🇬🇧United Kingdom mistergroove

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

Comments & Activities

  • Issue created by @mistergroove
  • 🇮🇳India nidhi27

    Hi @mistergroove,

    Please elaborate the steps to reproduce this issue.

    Steps I have followed:

    1. Deleted one content type having overridden permission.
    2. After this deleted another content type.

    I am not getting any error.

Production build 0.69.0 2024