All modules are now suitable for the site page. They now all follow the same rules, namely that any students enrolled in at least one course is considered to be a student on the site.

All the page headers work correctly also on the site course.

On the site page the modules don't require login unless necessary or required by $CFG->forcelogin.
This commit is contained in:
gustav_delius
2004-08-22 14:38:47 +00:00
parent 5985f9dce9
commit f950af3c43
46 changed files with 763 additions and 580 deletions
+2 -2
View File
@@ -31,7 +31,7 @@
}
}
require_login($course->id);
require_course_login($course);
add_to_log($course->id, "assignment", "view", "view.php?id=$cm->id", $assignment->id, $cm->id);
@@ -94,7 +94,7 @@
print_simple_box_end();
echo "<br />";
if (!isteacher($course->id) and !isguest()) {
if (isstudent($course->id)) {
$submission = assignment_get_submission($assignment, $USER);
if ($assignment->type == OFFLINE) {