From 18798c6f55e5d86570eca67be91df33778252656 Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 4 Jun 2002 06:35:36 +0000 Subject: [PATCH] Whoops ... don't put unenrol button unless the user is the current user! --- user/view.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/user/view.php b/user/view.php index 499e29336ca..e78c2eaf1a7 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);