by Dani Palou.
Hi Michael,
sorry for the name confusion, I was answering several posts and I mixed the names
Teachers can see all emails by default. To prevent that you need to do 2 things;
- You need to disable the capability Enable/disable email address (moodle/course:useremail). To do so, go to Site administration > Users > Define roles and click the gear next to Teacher. In the Filter field, enter this: course:useremail. Unmark the "Allow" checkbox and click Save.
- Go to Site administration > Users > Permissions > User policies. In "Show user identity", uncheck "Email address" and save changes.
That should be enough.
Kind regards,
Dani