Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

H3 -> H4

  • Loading branch information...
commit 5110affbb7efa4315d04ce3a175439bd481f53b8 1 parent d645e9e
martin authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 course/user.php
View
13 course/user.php
@@ -13,14 +13,15 @@
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",
@@ -99,9 +100,9 @@
$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>";
Please sign in to comment.
Something went wrong with that request. Please try again.