Deleting a content type does not remove permissions.

Created on 20 May 2024, 6 months 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

Merge Requests

Comments & Activities

Production build 0.71.5 2024