Restricting Enrollment by Role
Restricting enrollment by role prevents users without the specified role from enrolling.
For example, if the "site admin" role is checked, only site admins can enroll into that course.
To restrict enrollment by course prerequisite
Click "EDIT."
Click "Pre-requisites."
Check the checkboxes next to the role(s) allowed to enroll in the "Restrict enrollment to roles" field.
Click "Save."