mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Fixed bug: Bug #5081 - meta courses - teacher can't add child courses
This commit is contained in:
parent
87b18f4ab7
commit
3014ee9ccf
@ -27,7 +27,7 @@
|
||||
redirect("$CFG->wwwroot/course/student.php?id=$course->id");
|
||||
}
|
||||
|
||||
if (!isadmin() || !isteacheredit($course->id)) {
|
||||
if (!isadmin() && !isteacheredit($course->id)) {
|
||||
error("You must be an admin or a teacher of this course");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user