Skip to content

Commit

Permalink
pkp/pkp-lib#9965 Anonymize reviewer name in submission schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed May 30, 2024
1 parent 504e4f9 commit 73f10d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/submission/maps/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@

use APP\core\Application;
use APP\submission\Submission;
use Illuminate\Support\Collection;
use PKP\submission\PKPSubmission;

class Schema extends \PKP\submission\maps\Schema
{
/**
* @copydoc \PKP\submission\maps\Schema::mapByProperties()
*/
protected function mapByProperties(array $props, Submission $submission): array
protected function mapByProperties(array $props, Submission $submission, bool|Collection $anonymizeReviews = false): array
{
$output = parent::mapByProperties($props, $submission);
$output = parent::mapByProperties($props, $submission, $anonymizeReviews);

if (in_array('urlPublished', $props)) {
$output['urlPublished'] = $this->request->getDispatcher()->url(
Expand Down

0 comments on commit 73f10d3

Please sign in to comment.