From: martin Date: Mon, 10 Jun 2002 03:49:28 +0000 (+0000) Subject: All users are viewable in the "site" course. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b51e99130f39c6fe56b369893d724df0e4a31fd2;p=moodle.git All users are viewable in the "site" course. --- diff --git a/user/view.php b/user/view.php index 3735a39c1c..73be896783 100644 --- a/user/view.php +++ b/user/view.php @@ -35,13 +35,14 @@ print_header("Personal profile: $fullname", "Personal profile: $fullname", "$fullname", ""); } - if (!isstudent($course->id, $user->id) && !isteacher($course->id, $user->id)) { - print_heading("$fullname is not enrolled in this course"); - print_footer($course); - die; + if ($course->category) { + if (!isstudent($course->id, $user->id) && !isteacher($course->id, $user->id)) { + print_heading("$fullname is not enrolled in this course"); + print_footer($course); + die; + } } - echo "
"; echo ""; echo "
body\" VALIGN=top>";