From: martin Date: Tue, 4 Jun 2002 06:35:36 +0000 (+0000) Subject: Whoops ... don't put unenrol button unless the user is the current user! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=18798c6f55e5d86570eca67be91df33778252656;p=moodle.git Whoops ... don't put unenrol button unless the user is the current user! --- diff --git a/user/view.php b/user/view.php index 499e29336c..e78c2eaf1a 100644 --- a/user/view.php +++ b/user/view.php @@ -103,12 +103,14 @@ echo ""; // Print other functions - echo "
"; - echo ""; - echo "

"; - echo "id\">"; - echo "shortname\">"; - echo "

\n"; + if ($id == $USER->id) { + echo "
"; + echo ""; + echo "

"; + echo "id\">"; + echo "shortname\">"; + echo "

\n"; + } print_footer($course);