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 8b45219 commit a4a511c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ public static function get_metadata(collection $collection) : collection {
* @return contextlist $contextlist The contextlist containing the list of contexts used in this plugin.
*/
public static function get_contexts_for_userid(int $userid) : contextlist {
$sql = "SELECT :contextid
FROM {tool_mediatime}
WHERE usermodified = :usermodified";
$sql = "SELECT c.id
FROM {tool_mediatime} m
JOIN {context} c ON c.contextlevel = :contextlevel
WHERE m.usermodified = :usermodified";

$params = [
'contextid' => SYSCONTEXTID,
Expand Down

0 comments on commit a4a511c

Please sign in to comment.