mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Merge branch 'MDL-74893-master-fix_auto_login_guest' of https://github.com/praxisdigital/moodle
This commit is contained in:
commit
14d37a274e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue