mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-74893-MOODLE_401_STABLE-fix_auto_login_guest' of https://github.com/praxisdigital/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
d584ca7b7f
@ -2747,7 +2747,7 @@ function require_login($courseorid = null, $autologinguest = true, $cm = null, $
|
||||
|
||||
// If the user is not even logged in yet then make sure they are.
|
||||
if (!isloggedin()) {
|
||||
if ($autologinguest and !empty($CFG->guestloginbutton) and !empty($CFG->autologinguests)) {
|
||||
if ($autologinguest && !empty($CFG->autologinguests)) {
|
||||
if (!$guest = get_complete_user_data('id', $CFG->siteguest)) {
|
||||
// Misconfigured site guest, just redirect to login page.
|
||||
redirect(get_login_url());
|
||||
|
Loading…
x
Reference in New Issue
Block a user