Skip to content

Commit

Permalink
MDL-62619 privacy: Fix a missing alias in the blog provider class
Browse files Browse the repository at this point in the history
The new implementation revealed another existing bug that did not expose
before due to coincidently same named table alias in the outer query.
  • Loading branch information
mudrd8mz committed Jul 27, 2018
1 parent cea03cb commit c4e7c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static function get_contexts_for_userid(int $userid) : \core_privacy\loca
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 = [
Expand Down

0 comments on commit c4e7c3c

Please sign in to comment.