Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-35780 Administration: current user email should be always display…

…ed on participants page
  • Loading branch information...
commit 68e12697a3f151e4df89bc467ce01bb29fce567a 1 parent b1ffa78
@rajeshtaneja rajeshtaneja authored danpoltawski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  user/index.php
View
2  user/index.php
@@ -610,7 +610,7 @@
}
if ($user->maildisplay == 1 or ($user->maildisplay == 2 and ($course->id != SITEID) and !isguestuser()) or
has_capability('moodle/course:viewhiddenuserfields', $context) or
- in_array('email', $extrafields)) {
+ in_array('email', $extrafields) or ($user->id == $USER->id)) {
$row->cells[1]->text .= get_string('email').get_string('labelsep', 'langconfig').html_writer::link("mailto:$user->email", $user->email) . '<br />';
}
foreach ($extrafields as $field) {
Please sign in to comment.
Something went wrong with that request. Please try again.