Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-10624 Reverting forum part of last commit - it wasn't needed, I w…

…asn't testing

correctly.
  • Loading branch information...
commit 82ad3312a7333b946ad1e963314644e42bd3e610 1 parent ca2af27
poltawski authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 lib/accesslib.php
View
7 lib/accesslib.php
@@ -2328,13 +2328,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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.