Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MDL-50744 enrol_meta: fix incorrect role assign
[moodle.git]
/
enrol
/
meta
/
locallib.php
diff --git
a/enrol/meta/locallib.php
b/enrol/meta/locallib.php
index
08c50c8
..
983530e
100644
(file)
--- 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);
}
if ($instance->customint2) {
groups_add_member($instance->customint2, $ue->userid, 'enrol_meta', $instance->id);
}