MDL-8029 removed obsoleted use of isadmin() from authenticate_user_login()
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user