mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Link to profile editing should not appear on other users' profiles.
This commit is contained in:
parent
8ebd0d9f4d
commit
aa34400457
1 changed files with 5 additions and 1 deletions
|
@ -179,7 +179,11 @@
|
||||||
if (is_mnet_remote_user($user)) {
|
if (is_mnet_remote_user($user)) {
|
||||||
echo "<p class=\"errorboxcontent\">This profile is for a remote user from another Moodle system. <br />\n";
|
echo "<p class=\"errorboxcontent\">This profile is for a remote user from another Moodle system. <br />\n";
|
||||||
$remotehost = get_record('mnet_host', 'id', $user->mnethostid);
|
$remotehost = get_record('mnet_host', 'id', $user->mnethostid);
|
||||||
|
if ($USER->id == $user->id) {
|
||||||
echo "Remote Moodle: <a href=\"{$remotehost->wwwroot}/user/edit.php\">{$remotehost->name}</a> (click here to edit your profile on the remote server) </p>\n";
|
echo "Remote Moodle: <a href=\"{$remotehost->wwwroot}/user/edit.php\">{$remotehost->name}</a> (click here to edit your profile on the remote server) </p>\n";
|
||||||
|
} else {
|
||||||
|
echo "Remote Moodle: <a href=\"{$remotehost->wwwroot}\">{$remotehost->name}</a> </p>\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<table width="80%" class="userinfobox" summary="">';
|
echo '<table width="80%" class="userinfobox" summary="">';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue