Permalink
Browse files

MDL-28348 fix meta sync when unassigning roles

  • Loading branch information...
1 parent c015236 commit 617027cf84e140f33cb45251eb46e48eacd1ec7e @skodak skodak committed Jul 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/meta/locallib.php
View
@@ -115,7 +115,7 @@ public function role_unassigned($ra) {
}
// 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;

0 comments on commit 617027c

Please sign in to comment.