Use is_internal_email function (see bug 978)
authormoodler <moodler>
Sat, 17 Jan 2004 07:08:47 +0000 (07:08 +0000)
committermoodler <moodler>
Sat, 17 Jan 2004 07:08:47 +0000 (07:08 +0000)
admin/users.php
course/lib.php

index f129db5..e6f9f70 100644 (file)
@@ -25,7 +25,7 @@
     $table->data[] = array("<b><a href=\"auth.php\">".get_string("authentication")."</a></b>",
                            get_string("adminhelpauthentication"));
 
-    if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
+    if (is_internal_auth()) {
         $table->data[] = array("<b><a href=\"$CFG->wwwroot/$CFG->admin/user.php?newuser=true\">".get_string("addnewuser")."</a></b>",
                                get_string("adminhelpaddnewuser"));
         $table->data[] = array("<b><a href=\"$CFG->wwwroot/$CFG->admin/uploaduser.php\">".get_string("uploadusers")."</a></b>",
index f3f382c..db9b8f4 100644 (file)
@@ -929,7 +929,7 @@ function print_course_admin_links($course, $width=180) {
             $admindata[]="<a href=\"user.php?id=$course->id&user=$USER->id\">".get_string("activityreport")."...</a>";
             $adminicon[]="<img src=\"$CFG->pixpath/i/report.gif\" height=16 width=16 alt=\"\">";
         }
-        if ($CFG->auth == "email" or $CFG->auth == "none" or $CFG->auth == "manual") {
+        if (is_internal_auth()) {
             $admindata[]="<a href=\"$CFG->wwwroot/login/change_password.php?id=$course->id\">".
                           get_string("changepassword")."...</a>";
             $adminicon[]="<img src=\"$CFG->pixpath/i/user.gif\" height=16 width=16 alt=\"\">";