]> git.mjollnir.org Git - moodle.git/commitdiff
H3 -> H4
authormartin <martin>
Tue, 23 Jul 2002 18:20:24 +0000 (18:20 +0000)
committermartin <martin>
Tue, 23 Jul 2002 18:20:24 +0000 (18:20 +0000)
course/user.php

index b314c19492fd6ebe50632863907b8ef238c73bad..7970119ed514c5f26064edcd5053f42365f5eb8a 100644 (file)
 
     require_login($course->id);
 
-    if (!isteacher($course->id)) {
-        error("Only teachers can look at this page");
-    }
-
     if (! $user = get_record("user", "id", $user)) {
         error("User ID is incorrect");
     }
 
+    if (!isteacher($course->id) and $user->id != $USER->id ) {
+        error("You are not allowed to look at this page");
+    }
+
+
     add_to_log($course->id, "course", "user record", "user.php?id=$course->id&user=$user->id", "$user->id"); 
 
     print_header("$course->shortname: Activity Report", "$course->fullname",
                                     
                                     $image = "<IMG SRC=\"../mod/$mod->modname/icon.gif\" ".
                                              "HEIGHT=16 WIDTH=16 ALT=\"$mod->modfullname\">";
-                                    echo "<H3>$image $mod->modfullname: ".
+                                    echo "<H4>$image $mod->modfullname: ".
                                          "<A HREF=\"$CFG->wwwroot/mod/$mod->modname/view.php?id=$mod->id\">".
-                                         "$instance->name</A></H3>";
+                                         "$instance->name</A></H4>";
                                     echo "<UL>";
                                     include($userfile);
                                     echo "</UL>";