mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Don't redirect guests to mymoodle page! MDL-8594
This commit is contained in:
parent
120e5cbf4c
commit
40fa2a74e7
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user