From: martin Date: Sat, 10 Aug 2002 15:16:00 +0000 (+0000) Subject: Fixes to visibility of unenrol button X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=923566789055a57c906716da2e1577a9603419f2;p=moodle.git Fixes to visibility of unenrol button --- 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\">";