Skip to content

Commit

Permalink
pkp/pkp-lib#10486 Updates canEditPublication method call to pass Su…
Browse files Browse the repository at this point in the history
…bmission object instead of submission identifier.

Signed-off-by: yves <[email protected]>
  • Loading branch information
YvesLepidus committed Dec 12, 2024
1 parent 6bd0047 commit d1d826c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ public function canEdit() {

if ($submission->getDateSubmitted() == null) return true;

if (Services::get('submission')->canEditPublication($submission->getId(), $user->getId())) {
if (Services::get('submission')->canEditPublication($submission, $user->getId())) {
return true;
}

Expand Down

0 comments on commit d1d826c

Please sign in to comment.