A bit of an audit and a clean up of require_login to add consistency.

No major problems found, just some code tidy-up
This commit is contained in:
moodler
2003-05-24 07:29:17 +00:00
parent 73fafc3886
commit 783da26290
10 changed files with 30 additions and 22 deletions
+2 -2
View File
@@ -6,6 +6,8 @@
require_variable($id); // Week ID
require_login();
if (! $section = get_record("course_sections", "id", $id)) {
error("Course section is incorrect");
}
@@ -14,8 +16,6 @@
error("Could not find the course!");
}
require_login($course->id);
if (!isteacher($course->id)) {
error("Only teachers can edit this!");
}