]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8029 removed obsoleted use of isadmin() from authenticate_user_login()
authorskodak <skodak>
Sat, 30 Dec 2006 21:32:53 +0000 (21:32 +0000)
committerskodak <skodak>
Sat, 30 Dec 2006 21:32:53 +0000 (21:32 +0000)
lib/moodlelib.php

index 853342c50fb4d78bc50e084eeb23bfef01a4c259..0f60e6244f9b4f75fd3f3e01df7344cf66b64fe6 100644 (file)
@@ -2387,7 +2387,8 @@ function authenticate_user_login($username, $password) {
     }
 
     if (empty($user->auth)) {      // For some reason it isn't set yet
-        if (!empty($user->id) && (isadmin($user->id) || isguest($user->id))) {
+        $primadmin = get_admin();
+        if (!empty($user->id) && (($user->id==$primadmin->id) || isguest($user->id))) {
             $auth = 'manual';    // Always assume these guys are internal
         } else {
             $auth = $CFG->auth;  // Normal users default to site method