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 Jun 12, 2024
1 parent 9539799 commit 8d2c124
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 @@ -17,6 +17,7 @@
use APP\press\FeatureDAO;
use APP\press\NewReleaseDAO;
use APP\submission\Submission;
use Illuminate\Support\Collection;
use PKP\db\DAORegistry;

class Schema extends \PKP\submission\maps\Schema
Expand All @@ -34,9 +35,9 @@ protected function getSubmissionsListProps(): array
}

/** @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 8d2c124

Please sign in to comment.