]> git.mjollnir.org Git - moodle.git/commitdiff
Merged fix for restricted users from stable
authormoodler <moodler>
Tue, 31 Aug 2004 10:05:10 +0000 (10:05 +0000)
committermoodler <moodler>
Tue, 31 Aug 2004 10:05:10 +0000 (10:05 +0000)
course/loginas.php

index 246003aa162d096d9712444121466231e60415a2..cc55ae042acc152645d7c730c5efa7528eb3e7e3 100644 (file)
@@ -40,6 +40,8 @@
         error("Only teachers can use this page!");
     }
 
+    check_for_restricted_user($USER->username, "$CFG->wwwroot/user/view.php?id=$user&course=$course->id");
+
     if ($course->category and !isstudent($course->id, $user) and !isadmin()) {
         error("This student is not in this course!");
     }