Commit 961bcde9 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1908845: Removing the Admin Account from an institution is producing warning"

parents b314a3fe 8a12f778
......@@ -707,6 +707,10 @@ class Institution {
}
update_record('usr', $user);
}
if ($user->id == $USER->id) {
$USER->authinstance = $user->authinstance;
$USER->commit();
}
// If this user has a favourites list which is updated by this institution, remove it
// from this institution's control.
......
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