Commit 933fc266 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic

Bug 1304146: Delete remote user when delete institution

If a user has manually assigned a remote authorization method
from an institution and he is not a member of that institution
when we try to delete the institution there will still be
a record in auth_remote_user table.

When the institution is deleted, so is the authorization method,
and so should be the remote user record.

behatnotneeded

Change-Id: I91dcadc5fbfddc8941c60adc78f304996591b3b8
parent b3582257
......@@ -141,6 +141,7 @@ if ($institution || $add) {
foreach ($authinstanceids as $id) {
delete_records('auth_instance_config', 'instance', $id);
delete_records('auth_remote_user', 'authinstance', $id);
}
foreach ($regdataids as $id) {
......
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