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
@ -26,8 +26,8 @@
|
|||||||
if (!$course->metacourse) {
|
if (!$course->metacourse) {
|
||||||
redirect("$CFG->wwwroot/course/student.php?id=$course->id");
|
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");
|
error("You must be an admin or a teacher of this course");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user