some capabilities for quiz and questions, need to load them in access.php

This commit is contained in:
toyomoyo
2006-08-21 08:40:06 +00:00
parent f0da6b858e
commit 3765fd5367
5 changed files with 63 additions and 36 deletions
+2 -6
View File
@@ -27,13 +27,9 @@
if (! $course = get_record("course", "id", $courseid)) {
error("This course doesn't exist");
}
$context = get_context_instance(CONTEXT_COURSE, $courseid);
require_login($course->id, false);
if (!isteacheredit($course->id)) {
error("You can't modify this course!");
}
$SESSION->returnurl = $FULLME;
// Print basic page layout.