mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Don't redirect guests to mymoodle page! MDL-8594
This commit is contained in:
parent
120e5cbf4c
commit
40fa2a74e7
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@
|
||||||
redirect($CFG->wwwroot .'/'. $CFG->admin .'/index.php');
|
redirect($CFG->wwwroot .'/'. $CFG->admin .'/index.php');
|
||||||
}
|
}
|
||||||
} else if (!empty($CFG->mymoodleredirect)) { // Redirect logged-in users to My Moodle overview if required
|
} 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');
|
redirect($CFG->wwwroot .'/my/index.php');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue