Hello,
You can prevent teachers from manually enrolling students in the course by overriding the permissions for the Teacher role in Course navigation > Participants > Permissions and preventing the capability enrol/manual:enrol.
You can prevent teachers from manually enrolling students in the course by overriding the permissions for the Teacher role in Course navigation > Participants > Permissions and preventing the capability enrol/manual:enrol.