From b6c59cf7962e7b1e6d7c54a38e8dccd983132c46 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Tue, 21 Nov 2006 02:08:59 +0000 Subject: [PATCH] merged, fixed hard coded auth method "ldap" --- lib/moodlelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index ea88e969c7..927f81b540 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -2405,7 +2405,7 @@ function authenticate_user_login($username, $password) { $creatorrole = array_shift($creatorroles); // We can only use one, let's use the first one // Check if the user is a creator if (auth_iscreator($username)) { // Following calls will not create duplicates - role_assign($creatorrole->id, $user->id, 0, $sitecontext->id, 0, 0, 0, 'ldap'); + role_assign($creatorrole->id, $user->id, 0, $sitecontext->id, 0, 0, 0, $auth); } else { role_unassign($creatorrole->id, $user->id, 0, $sitecontext->id); } -- 2.39.5