Commit 40fa2a74 authored by moodler's avatar moodler
Browse files

Don't redirect guests to mymoodle page! MDL-8594

parent 120e5cbf
......@@ -60,7 +60,7 @@
redirect($CFG->wwwroot .'/'. $CFG->admin .'/index.php');
}
} else if (!empty($CFG->mymoodleredirect)) { // Redirect logged-in users to My Moodle overview if required
if (isloggedin()) {
if (isloggedin() && $USER->username != 'guest') {
redirect($CFG->wwwroot .'/my/index.php');
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment