Commit dc64aa25 authored by Robert Lyon's avatar Robert Lyon

Bug 1828135: Remove the pending emails when deleting user

behatnotneeded

Change-Id: I04e7787c9d17418d2a5e80df3035255cb51b6d51
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 0aa44264
......@@ -1599,6 +1599,7 @@ function delete_user($userid) {
delete_records('usr_pendingdeletion', 'usr', $userid); // just in case
delete_records('usr_agreement', 'usr', $userid);
delete_records('existingcopy', 'usr', $userid);
delete_records('artefact_internal_profile_email', 'owner', $userid);
if (is_plugin_active('framework', 'module')) {
delete_records('framework_assessment_feedback', 'usr', $userid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment