mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
lib MDL-1975 Users who have been auto logged in by guest are now redirected to login on capability exceptions rather than being shown the exception.
This commit is contained in:
parent
ee14924440
commit
d9e0726431
2 changed files with 7 additions and 1 deletions
|
@ -2330,6 +2330,7 @@ function require_login($courseorid = NULL, $autologinguest = true, $cm = NULL, $
|
|||
}
|
||||
$lang = isset($SESSION->lang) ? $SESSION->lang : $CFG->lang;
|
||||
complete_user_login($guest, false);
|
||||
$USER->autologinguest = true;
|
||||
$SESSION->lang = $lang;
|
||||
} else {
|
||||
//NOTE: $USER->site check was obsoleted by session test cookie,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue