]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12382 allow admins to access any course - including courses where they have guest...
authorskodak <skodak>
Mon, 18 Feb 2008 23:40:21 +0000 (23:40 +0000)
committerskodak <skodak>
Mon, 18 Feb 2008 23:40:21 +0000 (23:40 +0000)
lib/moodlelib.php

index 37abbaa816a29da7a92a786f88d87ef8ab826a1e..ac4e13a3c62b34e68d370e9610ff72d3f42ba87f 100644 (file)
@@ -1959,7 +1959,7 @@ function require_login($courseorid=0, $autologinguest=true, $cm=null) {
         if (has_capability('moodle/legacy:guest', $COURSE->context, NULL, false)) {
             if (has_capability('moodle/site:doanything', $sysctx)) {
                 // administrators must be able to access any course - even if somebody gives them guest access
-                return true;
+                return;
             }
 
             switch ($COURSE->guest) {    /// Check course policy about guest access