MDL-80835 auth_lti: fix bad cast breaking samesite LTI usage

This commit is contained in:
Jake Dallimore 2024-02-15 12:17:47 +08:00
parent 35e82b9fad
commit 7e56b46abc
No known key found for this signature in database

View file

@ -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