From: toyomoyo Date: Mon, 20 Nov 2006 03:55:35 +0000 (+0000) Subject: removed code to ignore site level course teacher assignemnts, since the contexts... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d55114512dc8d886cc54e87f0d76c71c764f3bff;p=moodle.git removed code to ignore site level course teacher assignemnts, since the contexts are separated now --- diff --git a/lib/accesslib.php b/lib/accesslib.php index 944b5bcc83..e44477673f 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -1290,12 +1290,10 @@ function moodle_install_roles() { if ($rs = get_recordset('user_teachers')) { while (! $rs->EOF) { $teacher = $rs->FetchObj(); - // ignore site level teacher assignments - if ($teacher->course == SITEID) { - $progresscount++; - $rs->MoveNext(); - continue; - } + + // removed code here to ignore site level assignments + // since the contexts are separated now + // populate the user_lastaccess table $access = new object(); $access->timeaccess = $teacher->timeaccess;