MSA-17-0019: user_can_view_profile() incorrectly assumes $course as shared course

by Marina Glancy.  

This fix may affect plugins using this API function, there is no exploit in standard Moodle


Severity/Risk:Minor
Versions affected:3.3 to 3.3.1, 3.2 to 3.2.4, 3.1 to 3.1.7 and earlier unsupported versions
Versions fixed:3.3.2, 3.2.5 and 3.1.8
Reported by:Ankit Agarwal
Changes (master):http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-58953
Tracker issue:MDL-58953 user_can_view_profile() incorrectly assumes $course as $sharedcourse

Read more https://moodle.org/mod/forum/discuss.php?d=358587&parent=1446235