mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
No need to show profile editing link to guests
This commit is contained in:
parent
b603ccb72c
commit
caa0f2ffa2
@ -45,7 +45,7 @@ class block_participants extends block_base {
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($USER->id)) {
|
||||
if (!empty($USER->id) and !isguest()) {
|
||||
$fullname = fullname($USER, true);
|
||||
$editmyprofile = '<a title="'.$fullname.'" href="'.$CFG->wwwroot.'/user/edit.php?id='.$USER->id.'&course='.$this->instance->pageid.'">'.get_string('editmyprofile').'</a>';
|
||||
if ($USER->description) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user