Skip to content

Commit

Permalink
Hides responsibles information from authors in handler
Browse files Browse the repository at this point in the history
Issue: documentacao-e-tarefas/scielo#613

Signed-off-by: Jhon <[email protected]>
  • Loading branch information
JhonathanLepidus committed Nov 23, 2023
1 parent fffec6f commit a9b1763
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions controllers/ScieloModerationStagesHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@ public function updateSubmissionStageData($args, $request)
public function getSubmissionExhibitData($args, $request)
{
$submissionId = $args['submissionId'];
$exhibitData = array_merge(
$this->getSubmissionModerationStage($submissionId),
$this->getResponsibles($submissionId),
$this->getAreaModerators($submissionId)
);
$exhibitData = $this->getSubmissionModerationStage($submissionId);

if ($args['userIsAuthor'] == 0) {
$exhibitData = array_merge(
$exhibitData,
$this->getResponsibles($submissionId),
$this->getAreaModerators($submissionId),
$this->getTimeSubmitted($submissionId),
$this->getTimeResponsible($submissionId),
$this->getTimeAreaModerator($submissionId)
Expand Down
4 changes: 2 additions & 2 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<application>scieloModerationStages</application>
<type>plugins.generic</type>
<lazy-load>0</lazy-load>
<release>1.5.3.0</release>
<date>2023-11-22</date>
<release>1.5.4.0</release>
<date>2023-11-23</date>
<class>ScieloModerationStagesPlugin</class>
</version>

0 comments on commit a9b1763

Please sign in to comment.