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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user