From ca1388dac7614711c24f1f6a3d59011cb820eb40 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 13 Mar 2004 13:43:06 +0000 Subject: [PATCH] Non-editing teachers shouldn't be able to assign students --- course/student.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/course/student.php b/course/student.php index 660f79684b..416f1bb61e 100644 --- a/course/student.php +++ b/course/student.php @@ -20,8 +20,8 @@ require_login($course->id); - if (!isteacher($course->id)) { - error("You must be a teacher in this course, or an admin"); + if (!isteacheredit($course->id)) { + error("You must be an editing teacher in this course, or an admin"); } $strassignstudents = get_string("assignstudents"); -- 2.39.5