mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-35780 Administration: current user email should be always displayed on participants page
This commit is contained in:
parent
5919718019
commit
4c4ade1ca9
1 changed files with 1 additions and 1 deletions
|
@ -618,7 +618,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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue