mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
MDL-80835 auth_lti: fix bad cast breaking samesite LTI usage
This commit is contained in:
parent
35e82b9fad
commit
7e56b46abc
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class auth_plugin_lti extends \auth_plugin_base {
|
|||
if (isloggedin()) {
|
||||
// If a different user is currently logged in, authenticate the linked user instead.
|
||||
global $USER;
|
||||
if ((int) $USER->id !== $user->id) {
|
||||
if ($USER->id !== $user->id) {
|
||||
complete_user_login($user);
|
||||
}
|
||||
// If the linked user is already logged in, skip the call to complete_user_login() because this affects deep linking
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue