From: moodler Date: Sat, 16 Aug 2003 06:40:35 +0000 (+0000) Subject: Only editing teachers can edit activities X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aa5780409672208d51324f495a087154978f637c;p=moodle.git Only editing teachers can edit activities --- diff --git a/course/mod.php b/course/mod.php index 4753f353f1..7a2f0eec6a 100644 --- a/course/mod.php +++ b/course/mod.php @@ -27,7 +27,7 @@ if (isset($_POST["course"])) { // add or update form submitted - if (!isteacher($mod->course)) { + if (!isteacheredit($mod->course)) { error("You can't modify this course!"); } @@ -111,7 +111,7 @@ error("This course module doesn't exist"); } - if (!isteacher($cm->course)) { + if (!isteacheredit($cm->course)) { error("You can't modify this course!"); } @@ -148,7 +148,7 @@ } } - if (!isteacher($section->course)) { + if (!isteacheredit($section->course)) { error("You can't modify this course!"); } @@ -177,7 +177,7 @@ error("This course module doesn't exist"); } - if (!isteacher($cm->course)) { + if (!isteacheredit($cm->course)) { error("You can't modify this course!"); } @@ -199,7 +199,7 @@ error("This course module doesn't exist"); } - if (!isteacher($cm->course)) { + if (!isteacheredit($cm->course)) { error("You can't modify this course!"); } @@ -231,7 +231,7 @@ error("This course module doesn't exist"); } - if (!isteacher($cm->course)) { + if (!isteacheredit($cm->course)) { error("You can't modify this course!"); } @@ -273,7 +273,7 @@ error("This course doesn't exist"); } - if (!isteacher($course->id)) { + if (!isteacheredit($course->id)) { error("You can't modify this course!"); } @@ -329,7 +329,7 @@ error("This course doesn't exist"); } - if (!isteacher($course->id)) { + if (!isteacheredit($course->id)) { error("You can't modify this course!"); } @@ -410,7 +410,7 @@ error("No action was specfied"); } - if (!isteacher($course->id)) { + if (!isteacheredit($course->id)) { error("You can't modify this course!"); }