Skip to content

Commit

Permalink
Merge branch 'MDL-62413-master' of git://github.com/junpataleta/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed May 14, 2018
2 parents e995166 + 2389ce3 commit 54ef15d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/tool/dataprivacy/classes/external.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public static function cancel_data_request($requestid) {
self::validate_context($context);

// Ensure the request exists.
$select = 'id = :id AND requestedby = :requestedby';
$params = ['id' => $requestid, 'requestedby' => $USER->id];
$select = 'id = :id AND (userid = :userid OR requestedby = :requestedby)';
$params = ['id' => $requestid, 'userid' => $USER->id, 'requestedby' => $USER->id];
$requestexists = data_request::record_exists_select($select, $params);

$result = false;
Expand Down

0 comments on commit 54ef15d

Please sign in to comment.