use enrol_sharing_course to check if users enrolled in similar courses

Users enrolled in similar courses are able to see the email addresses of the participants if their email display setting is set to be visible to the participants of the courses only.