Permalink
Browse files

All users are viewable in the "site" course.

  • Loading branch information...
1 parent f9e3b8f commit b51e99130f39c6fe56b369893d724df0e4a31fd2 martin committed Jun 10, 2002
Showing with 6 additions and 5 deletions.
  1. +6 −5 user/view.php
View
11 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 "<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>";

0 comments on commit b51e991

Please sign in to comment.