]> git.mjollnir.org Git - moodle.git/commitdiff
All users are viewable in the "site" course.
authormartin <martin>
Mon, 10 Jun 2002 03:49:28 +0000 (03:49 +0000)
committermartin <martin>
Mon, 10 Jun 2002 03:49:28 +0000 (03:49 +0000)
user/view.php

index 3735a39c1c238274d98b590ed7805aa481c4abc7..73be896783d159acdb72892f9d0d99c7cbabbe0d 100644 (file)
         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 "<TABLE WIDTH=80% ALIGN=CENTER BORDER=0 CELLPADDING=1 CELLSPACING=1><TR><TD BGCOLOR=#888888>";
     echo "<TABLE WIDTH=100% BORDER=0 CELLPADDING=3 CELLSPACING=0><TR>";
     echo "<TD WIDTH=100 BGCOLOR=\"$THEME->body\" VALIGN=top>";