Skip to content

Commit

Permalink
pkp/pkp-lib#9674 replaced scope functions taking one parameter with r…
Browse files Browse the repository at this point in the history
…elated functions taking array of parameters
  • Loading branch information
defstat committed Apr 2, 2024
1 parent f1300d3 commit c9f244d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/publication/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function canCurrentUserPublish(int $submissionId, ?User $user = null): bo
// Check if current user is an author
$isAuthor = false;

$submitterAssignments = StageAssignment::withSubmissionId($submissionId)
$submitterAssignments = StageAssignment::withSubmissionIds([$submissionId])
->withRoleIds([Role::ROLE_ID_AUTHOR])
->get();

Expand Down
2 changes: 1 addition & 1 deletion controllers/tab/workflow/WorkflowTabHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function fetchTab($args, $request)
$errors = [];
$context = $request->getContext();

$submitterAssignments = StageAssignment::withSubmissionId($submission->getId())
$submitterAssignments = StageAssignment::withSubmissionIds([$submission->getId()])
->withRoleIds([Role::ROLE_ID_AUTHOR])
->get();

Expand Down

0 comments on commit c9f244d

Please sign in to comment.