From 5b2904c8f8711a5b8ccee3f2df64e156f58b534b Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sun, 17 Jul 2011 20:35:15 +0200 Subject: [PATCH] MDL-28348 fix meta sync when unassigning roles --- 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 5fa467ba18b..3b68e7f40f6 100644 --- a/enrol/meta/locallib.php +++ b/enrol/meta/locallib.php @@ -115,7 +115,7 @@ class enrol_meta_handler { } // unassing role, there is no other role assignment in parent course - role_unassign($ra->roleid, $ra->userid, $ra->contextid, 'enrol_meta', $enrol->id); + role_unassign($ra->roleid, $ra->userid, $context->id, 'enrol_meta', $enrol->id); } return true; -- 2.43.0