]> git.mjollnir.org Git - moodle.git/commitdiff
removed code to ignore site level course teacher assignemnts, since the contexts...
authortoyomoyo <toyomoyo>
Mon, 20 Nov 2006 03:55:35 +0000 (03:55 +0000)
committertoyomoyo <toyomoyo>
Mon, 20 Nov 2006 03:55:35 +0000 (03:55 +0000)
lib/accesslib.php

index 944b5bcc83f9fc48f698d5b028380f03cab60e44..e44477673f6ee509283c72e0f6e1326dccd8d138 100755 (executable)
@@ -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;