Skip to content

Commit

Permalink
VID-21: Fix privacy provider sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Thies committed Jan 27, 2024
1 parent b9113e3 commit 8619f40
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ public static function get_metadata(collection $collection) : collection {
public static function get_contexts_for_userid(int $userid) : contextlist {
$sql = "SELECT c.id
FROM {tool_mediatime} m
JOIN {context} c
WHERE m.usermodified = :usermodified
AND c.contextlevel = :contextlevel";
JOIN {context} c ON c.contextlevel = :contextlevel
WHERE m.usermodified = :usermodified";

$params = [
'contextlevel' => CONTEXT_SYSTEM,
Expand Down

0 comments on commit 8619f40

Please sign in to comment.