if (isset($_POST["course"])) { // add or update form submitted
- if (!isteacher($mod->course)) {
+ if (!isteacheredit($mod->course)) {
error("You can't modify this course!");
}
error("This course module doesn't exist");
}
- if (!isteacher($cm->course)) {
+ if (!isteacheredit($cm->course)) {
error("You can't modify this course!");
}
}
}
- if (!isteacher($section->course)) {
+ if (!isteacheredit($section->course)) {
error("You can't modify this course!");
}
error("This course module doesn't exist");
}
- if (!isteacher($cm->course)) {
+ if (!isteacheredit($cm->course)) {
error("You can't modify this course!");
}
error("This course module doesn't exist");
}
- if (!isteacher($cm->course)) {
+ if (!isteacheredit($cm->course)) {
error("You can't modify this course!");
}
error("This course module doesn't exist");
}
- if (!isteacher($cm->course)) {
+ if (!isteacheredit($cm->course)) {
error("You can't modify this course!");
}
error("This course doesn't exist");
}
- if (!isteacher($course->id)) {
+ if (!isteacheredit($course->id)) {
error("You can't modify this course!");
}
error("This course doesn't exist");
}
- if (!isteacher($course->id)) {
+ if (!isteacheredit($course->id)) {
error("You can't modify this course!");
}
error("No action was specfied");
}
- if (!isteacher($course->id)) {
+ if (!isteacheredit($course->id)) {
error("You can't modify this course!");
}