moodle-tool_mergeusers
moodle-tool_mergeusers copied to clipboard
maintain user image on merging
As a user I want to see my profile image after a merging in order to be less annoying.
Acceptance conditions:
- If both users have customized profile image, do nothing.
- If both users have not customized profile image, do nothing.
- If new user to maintain has no customized profile image and old user to delete has, keep that image on the new user.
- If old user has no customized profile image, do nothing.
Notes:
- This plugin updates the profile image for the old user with a customized image to state that that user was disabled (if that is the case). So, we should do the profile image migration before updating the disabled user image.