Skip to content
Snippets Groups Projects
Commit acd02e62 authored by Sohail Lajevardi's avatar Sohail Lajevardi
Browse files

Issue #3107714 by chaitanyadessai, bahuma20, alison, jungle, doxigo: Delete...

Issue #3107714 by chaitanyadessai, bahuma20, alison, jungle, doxigo: Delete configurations when a role is deleted
parent 458bb9c5
No related branches found
No related tags found
No related merge requests found
Pipeline #255628 failed
......@@ -220,4 +220,6 @@ function nodeaccess_user_role_delete(EntityInterface $entity) {
/** @var \Drupal\nodeaccess\NodeAccessHelper $nodeaccess_helper */
$nodeaccess_helper = \Drupal::service('nodeaccess.helper');
$nodeaccess_helper->deleteRoleRelatedSettings($entity);
// Rebuild permissions after deleting role-related settings.
\Drupal::service('router.builder')->rebuild();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment