Skip to content

Commit

Permalink
Merge pull request #4289 from Vitaliy-1/i9965_submission_reviews
Browse files Browse the repository at this point in the history
pkp/pkp-lib#9965 Anonymize reviewer name in submission schema
  • Loading branch information
Vitaliy-1 authored Jun 12, 2024
2 parents 7007e65 + dcf243e commit 797333b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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 797333b

Please sign in to comment.