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 bc53731 commit bd79bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/grid/users/chapter/ChapterGridHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function canAdminister($user) {
if ($submission->getDateSubmitted() == null) return true;

// The user may not be allowed to edit the metadata
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 bd79bfb

Please sign in to comment.