Hi Joe,
The ideal way to handle this would be via a capability check, but unfortunately in Moodle 1.9 this would require a check for every record in the report which would cause performance problems on large sites.
Rather than risk performance issues, or leak personal information we opted for the 'Email is private' text for users who haven't set "Allow everyone to see my email" in their profile.
In Moodle 2 the capabilities system has been improved, and I'm hopeful we'll be able to remove that restriction at some point.
If you wanted to change this restriction on your site you could change the code. You'd need to edit local/reportbuilder/classes/rb_base_source.php and change two bits:
1. Around L1045 change:
"CASE WHEN $join.maildisplay <> 1 THEN '-' ELSE $join.email END",
to:
"$join.email",
2. Around L679 remove this section:
// respect users email privacy setting
// at some point we may want to allow admins to view anyway
if ($maildisplay != 1) {
return get_string('useremailprivate', 'local_reportbuilder');
}
Be aware that this will affect all report builder reports and will allow any user who can see the report to see the users email, ignoring the privacy setting they choose in their profile.
Simon