Commit bb8fd1bb authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1677038: Checks if framework plugin is installed"

parents df4604db 4d22385f
......@@ -1574,7 +1574,6 @@ function delete_user($userid) {
delete_records('usr_account_preference', 'usr', $userid);
delete_records('usr_activity_preference', 'usr', $userid);
delete_records('usr_infectedupload', 'usr', $userid);
delete_records('framework_assessment_feedback', 'usr', $userid);
delete_records('usr_institution', 'usr', $userid);
delete_records('usr_institution_request', 'usr', $userid);
delete_records('usr_password_request', 'usr', $userid);
......@@ -1582,6 +1581,10 @@ function delete_user($userid) {
delete_records('view_access', 'usr', $userid);
delete_records('usr_login_data', 'usr', $userid);
if (is_plugin_active('framework', 'module')) {
delete_records('framework_assessment_feedback', 'usr', $userid);
}
// Remove the user's views & artefacts
$viewids = get_column('view', 'id', 'owner', $userid);
if ($viewids) {
......
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