]> git.mjollnir.org Git - moodle.git/commitdiff
Don't allow adding of users when external authentication is being used.
authormoodler <moodler>
Thu, 19 Jun 2003 03:00:58 +0000 (03:00 +0000)
committermoodler <moodler>
Thu, 19 Jun 2003 03:00:58 +0000 (03:00 +0000)
admin/user.php

index efa8c4bd0f7a6e42ec775da240807d91b95470f1..dcb943100ee2113d4f2150deb8d5b05dff017a96 100644 (file)
 
         print_table($table);
 
-        print_heading("<A HREF=\"user.php?newuser=true\">".get_string("addnewuser")."</A>");
+        if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
+            print_heading("<A HREF=\"user.php?newuser=true\">".get_string("addnewuser")."</A>");
+        }
 
         print_footer();
     }