MDL-62384 privacy: Modify user contexts query for auth_oauth2
This commit is contained in:
committed by
Andrew Nicols
parent
2986db7b8d
commit
9b5778fcd1
@@ -75,8 +75,7 @@ class provider implements
|
||||
public static function get_contexts_for_userid(int $userid) : contextlist {
|
||||
$sql = "SELECT ctx.id
|
||||
FROM {auth_oauth2_linked_login} ao
|
||||
JOIN {user} u ON ao.userid = u.id
|
||||
JOIN {context} ctx ON ctx.instanceid = u.id AND ctx.contextlevel = :contextlevel
|
||||
JOIN {context} ctx ON ctx.instanceid = ao.userid AND ctx.contextlevel = :contextlevel
|
||||
WHERE ao.userid = :userid";
|
||||
$params = ['userid' => $userid, 'contextlevel' => CONTEXT_USER];
|
||||
$contextlist = new contextlist();
|
||||
|
||||
Reference in New Issue
Block a user