Commented code in MoodleRestEnrol - line=398 because it needs admin
capabilities