From f06d8d94a1f20d4f79376b2dc9e4707835386d97 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Wed, 2 Sep 2015 14:45:01 +0800 Subject: [PATCH 1/1] MDL-50744 enrol_meta: fix incorrect role assign --- enrol/meta/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/meta/locallib.php b/enrol/meta/locallib.php index 08c50c806ed..983530e043a 100644 --- a/enrol/meta/locallib.php +++ b/enrol/meta/locallib.php @@ -314,7 +314,7 @@ function enrol_meta_sync($courseid = NULL, $verbose = false) { } } - $meta->enrol_user($instance, $ue->userid, $ue->status); + $meta->enrol_user($instance, $ue->userid, null, 0, 0, $ue->status); if ($instance->customint2) { groups_add_member($instance->customint2, $ue->userid, 'enrol_meta', $instance->id); } -- 2.43.0