Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When a user is removed from the system, no acceptance documents are removed from the database. So in a rare case when a new user with the same email address is recreated, entity legal fails to enforce acceptance, as it finds existing documents. This happens even though the user's uid is different.
The patch I am attaching introduces hook_user_delete() which removes all entities when a user is deleted.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2633040-3.patch | 2.18 KB | claudiu.cristea |
| |||
#2 | 2633040-2.test-only.patch | 1.2 KB | claudiu.cristea |
Comments
Comment #2
claudiu.cristeaMoving to 8.x-2.x. Proving the bug.
Comment #3
claudiu.cristeaAnd the fix.
Comment #4
claudiu.cristeaComment #6
claudiu.cristeaComment #7
idimopoulos CreditAttribution: idimopoulos at Randstad Digital for European Commission and European Union Institutions, Agencies and Bodies commentedWorks as expected and is necessary for cleaning up the database.
Comment #9
claudiu.cristeaComment #10
claudiu.cristeaFixing credits.