Fatal error if content type who has clone permission is deleted

Created on 5 January 2025, 3 months ago

To reproduce:

1. Create new content type

2. Assign clone permission to it to any user role

3. Delete content type

4. Visit /admin/people/permissions/module/quick_node_clone or /admin/people/permissions and try to change or update permissions. The WSOD error message will appear with error similar to this one:

[05-Jan-2025 22:56:22 Europe/Zagreb] Uncaught PHP Exception RuntimeException: "Adding non-existent permissions to a role is not allowed. The incorrect permissions are "clone link content"." at /home/mysite/public_html/core/modules/user/src/Entity/Role.php line 214

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇭🇷Croatia devad

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