From: moodler Date: Fri, 22 Nov 2002 09:59:31 +0000 (+0000) Subject: Hide password and unenrolment buttons from guest users X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bcd6e7184fedcce0fdeae41a82b2e5e78e704820;p=moodle.git Hide password and unenrolment buttons from guest users --- diff --git a/user/view.php b/user/view.php index 455f7a6099..e00dd38cab 100644 --- a/user/view.php +++ b/user/view.php @@ -123,13 +123,13 @@ // Print other functions echo "
"; - if ($user->id == $USER->id) { + if ($user->id == $USER->id and !isguest()) { echo ""; } - if ((isstudent($course->id) and ($user->id == $USER->id)) or + if ((isstudent($course->id) and ($user->id == $USER->id) and !isguest()) or (isteacher($course->id) and isstudent($course->id, $user->id)) ) { echo "

wwwroot/login/change_password.php\" METHOD=GET>"; echo "id\">"; echo ""; echo "

"; echo "id\">";