Skip to content

Commit

Permalink
Added controls for the invisible variable teacherassignteachers which
Browse files Browse the repository at this point in the history
decides whether teachers can edit teachers in their own courses.
  • Loading branch information
moodler committed Aug 26, 2003
1 parent 0518065 commit 7cdcb42
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions admin/config.html
Expand Up @@ -300,6 +300,21 @@
<?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>
Expand Down
1 change: 1 addition & 0 deletions lang/en/moodle.php
Expand Up @@ -130,6 +130,7 @@
$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";
Expand Down
1 change: 1 addition & 0 deletions lib/defaults.php
Expand Up @@ -30,6 +30,7 @@
"smtphosts" => "",
"smtppass" => "",
"smtpuser" => "",
"teacherassignteachers" => true,
"theme" => "standard",
"unzip" => "",
"zip" => ""
Expand Down

0 comments on commit 7cdcb42

Please sign in to comment.