Skip to content

Commit

Permalink
Merge branch 'MDL-31520-MOODLE_21_STABLE' of git://github.com/fabioms…
Browse files Browse the repository at this point in the history
…outo/moodle into MOODLE_21_STABLE
  • Loading branch information
Sam Hemelryk committed Jun 5, 2012
2 parents 8ad117c + 660b8d0 commit 4c3a1c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion user/lib.php
Expand Up @@ -312,7 +312,8 @@ function user_get_user_details($user, $course = null) {
if ($currentuser
or $canviewuseremail // this is a capability in course context, it will be false in usercontext
or $user->maildisplay == 1
or ($user->maildisplay == 2 and enrol_sharing_course($user, $USER))) {
or ($user->maildisplay == 2 and enrol_sharing_course($user, $USER))
or $isadmin) {
$userdetails['email'] = $user->email;;
}

Expand Down

0 comments on commit 4c3a1c6

Please sign in to comment.