From 923566789055a57c906716da2e1577a9603419f2 Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 10 Aug 2002 15:16:00 +0000 Subject: [PATCH] Fixes to visibility of unenrol button --- user/view.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/user/view.php b/user/view.php index 0a390e0be6..573c098a7e 100644 --- a/user/view.php +++ b/user/view.php @@ -113,7 +113,8 @@ // Print other functions echo "
"; - if ($course->category and !isguest() and (isteacher($course->id) and ($user->id != $USER->id)) ) { + if ((isstudent($course->id) and ($user->id == $USER->id)) or + (isteacher($course->id) and isstudent($course->id, $user->id)) ) { echo "

"; echo "id\">"; echo "id\">"; -- 2.39.5