]> git.mjollnir.org Git - moodle.git/commitdiff
Allow teacher editors to modify scales
authormoodler <moodler>
Sat, 16 Aug 2003 05:44:40 +0000 (05:44 +0000)
committermoodler <moodler>
Sat, 16 Aug 2003 05:44:40 +0000 (05:44 +0000)
course/scales.php

index 6fb8f5fd54506365deb76bc7c589cd6c46167b91..ec34c429ef3a5b780e9ebc7d9850f638d9010bbb 100644 (file)
@@ -89,8 +89,8 @@
 
 /// The rest is all about editing the scales
 
-    if (!iscreator() and isteacher($course->id)) {
-        error("Only course creators can modify scales !");
+    if (!isteacheredit($course->id)) {
+        error("Only editing teachers can modify scales !");
     }