MDL-62619 privacy: Fix a missing alias in the blog provider class

The new implementation revealed another existing bug that did not expose
before due to coincidently same named table alias in the outer query.
This commit is contained in:
David Mudrák
2018-07-27 10:14:38 +02:00
parent df26945105
commit 84bef5413c
+1 -1
View File
@@ -135,7 +135,7 @@ class provider implements
if ($DB->record_exists('blog_external', ['userid' => $userid])) {
$sql = "
SELECT ctx.id
FROM {context}
FROM {context} ctx
WHERE ctx.contextlevel = :ctxlevel
AND ctx.instanceid = :ctxuserid";
$params = [