]> git.mjollnir.org Git - moodle.git/commitdiff
Added controls for the invisible variable teacherassignteachers which
authormoodler <moodler>
Tue, 26 Aug 2003 15:52:22 +0000 (15:52 +0000)
committermoodler <moodler>
Tue, 26 Aug 2003 15:52:22 +0000 (15:52 +0000)
decides whether teachers can edit teachers in their own courses.

admin/config.html
lang/en/moodle.php
lib/defaults.php

index fcf562e3da49187dd84cd4941ccb5e7bc4c21bbf..cf2f53bdb3e65222d22d1d3c803972b9e18c4efe 100644 (file)
     <?php print_string("configsecureforms") ?>
     </td>
 </tr>
+<tr valign=top>
+       <td align=right><p>teacherassignteachers:</td>
+       <td>
+    <?php 
+       unset($options);
+       $options[0]  = get_string("no");
+       $options[1]  = get_string("yes");
+
+       choose_from_menu ($options, "teacherassignteachers", $config->teacherassignteachers, "", "", "");
+    ?>
+    </td>
+    <td>
+    <?php print_string("configteacherassignteachers") ?>
+    </td>
+</tr>
 
 <tr>
     <td colspan=3 align=center>
index 36bf1508550629dc57fdc6fcbd88fd4984566a3b..84a8b10aea879e874aa62f2e0a33035f9d454829 100644 (file)
@@ -130,6 +130,7 @@ $string['configsessiontimeout'] = "If people logged in to this site are idle for
 $string['configslasharguments'] = "Files (images, uploads etc) are provided via a script using 'slash arguments' (the second option here). This method allows files to be more easily cached in web browsers, proxy servers etc.  Unfortunately, some PHP servers don't allow this method, so if you have trouble viewing uploaded files or images (eg user pictures), set this variable to the first option";
 $string['configsmtphosts'] = "Give the full name of one or more local SMTP servers that Moodle should use to send mail (eg 'mail.a.com' or 'mail.a.com;mail.b.com'). If you leave it blank, Moodle will use the PHP default method of sending mail.";
 $string['configsmtpuser'] = "If you have specified an SMTP server above, and the server requires authentication, then enter the username and password here.";
+$string['configteacherassignteachers'] = "Should ordinary teachers be allowed to assign other teachers within courses they teach?  If 'No', then only course creators and admins can assign teachers.";
 $string['configunzip'] = "Indicate the location of your unzip program (Unix only, optional).  If specified, this will be used to unpack zip archives on the server.  If you leave this blank, then Moodle will use internal routines.";
 $string['configuration'] = "Configuration";
 $string['configvariables'] = "Variables";
index 3669c721e19edc01b5975403e8566ed1b5d397bf..991316734482b999afd778ac8fc3b1ffc489ca63 100644 (file)
@@ -30,6 +30,7 @@
        "smtphosts"        => "",
        "smtppass"         => "",
        "smtpuser"         => "",
+       "teacherassignteachers"  => true,
        "theme"            => "standard",
        "unzip"            => "",
        "zip"              => ""