Delete configurations when a role is deleted

Created on 21 January 2020, over 4 years ago
Updated 23 February 2024, 4 months ago

When a role is deleted, the node access module still has its configuration which results in php errors when rebuilding permissions.
Those php errors can break the node access system completely and leak information.

The fix should be relatively easy:
- Just implement hook_role_delete
- Remove the configurations which depend on the deleted roles
- Tell the user to rebuild permissions

📌 Task
Status

Needs review

Version

2.0

Component

Code

Created by

🇩🇪Germany bahuma20 Germany

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.69.0 2024