Skip to content

Commit

Permalink
#9409 Add CSRF check to review read operation
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Oct 12, 2023
1 parent 2e176bc commit 04e0e0e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ function unconsiderReview($args, $request) {
* @return JSONMessage JSON object
*/
function reviewRead($args, $request) {
if (!$request->checkCSRF()) return new JSONMessage(false);

// Retrieve review assignment.
$reviewAssignment = $this->getAuthorizedContextObject(ASSOC_TYPE_REVIEW_ASSIGNMENT); /* @var $reviewAssignment ReviewAssignment */

Expand Down

0 comments on commit 04e0e0e

Please sign in to comment.