Don't redirect guests to mymoodle page! MDL-8594
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user