Not particularly optimistic, I'm afraid, but I do remember the question being asked before: https://moodle.org/mod/forum/discuss.php?d=261465 and also MDL-45849
Enrolment
Prevent students from self enrolling in particular courses
This discussion has been locked so you can no longer reply to it.