[AMOS commit] MDL-64958 grade_import: Ensure correct user is being fetched Committed into Git: 2019-02-27 06:28 UTC

[AMOS commit] MDL-64958 grade_import: Ensure correct user is being fetched Committed into Git: 2019-02-27 06:28 UTC

by AMOS bot -
Number of replies: 0
Author: Jun Pataleta
MDL-64958 grade_import: Ensure correct user is being fetched
* We need to ensure that we are checking the correct user account.
Since email and idnumber are not unique fields, there's a chance that
multiple user records will match when querying for user data using
these fields. This might lead to a different user's grades being
inadvertently modified during grade import. In such a case, this
function needs to return a null userid.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=d45f0f0ceb0d3690544c40b676147c9662c62934
http://github.com/moodle/moodle/commit/d45f0f0ceb0d3690544c40b676147c9662c62934

+ 3.7 en [usermappingerrormultipleusersfound,core_grades]