diff --git a/course/student.php b/course/student.php index 35f87576f63..4c0124a72ed 100644 --- a/course/student.php +++ b/course/student.php @@ -20,8 +20,8 @@ require_login($course->id); - if (!isteacheredit($course->id)) { - error("You must be able to edit this course to assign students"); + if (!isteacher($course->id)) { + error("You must be a teacher in this course, or an admin"); } $strassignstudents = get_string("assignstudents");