I am the administrator of a Moodle site, and am trying to find out how I can hide the students' email addresses from teachers. Looking through the Permissions for teachers, I couldn't find any permission that would do that. I have all of the students email display set to "hide my email address from everyone", but the teachers can still see the address. I also tried changing the permissions for "View hidden details of users", but that didn't have any effect on the email address display. I can't hide the entire profile from the teachers because I want the teachers to still be able to see the user's other information.
Is there a way to do this without resorting to hacking the code? I really need this to work.