-
Improvement
-
Resolution: Fixed
-
Minor
-
3.11.2, 4.0, 4.4.2
-
MOODLE_311_STABLE, MOODLE_400_STABLE, MOODLE_404_STABLE
-
MOODLE_405_STABLE
-
Searching the Moodle repository for
$USER->switchrole
|
turned up this one remaining function in mod_feedback: https://github.com/moodle/moodle/search?q=feedback_check_is_switchrole
As far as I can tell, the correct method to use would be from accesslib:
function is_role_switched($courseid)
|
It looks like it's been nonfunctional for somewhere between 6 and 14 years, so it's unclear if the code that uses it is going to work when the boolean check is functioning again.