mirror of
https://github.com/moodle/moodle.git
synced 2025-04-23 09:23:09 +02:00
MDL-10624 Reverting forum part of last commit - it wasn't needed, I wasn't testing
correctly. merged from 18_STABLE
This commit is contained in:
parent
0605ad5092
commit
be23993798
@ -2354,13 +2354,6 @@ function role_unassign($roleid=0, $userid=0, $groupid=0, $contextid=0, $enrol=NU
|
||||
}
|
||||
}
|
||||
|
||||
// remove any forum subscriptions which may be present
|
||||
if ($forums = get_records('forum', 'course', $context->instanceid)) {
|
||||
foreach ($forums as $forum) {
|
||||
delete_records('forum_subscriptions', 'forum', $forum->id, 'userid', $ra->userid);
|
||||
}
|
||||
}
|
||||
|
||||
// delete lastaccess records
|
||||
delete_records('user_lastaccess', 'userid', $ra->userid, 'courseid', $context->instanceid);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user