From bd79bfbec7dfc1dba905715f0024da9a898b002e Mon Sep 17 00:00:00 2001 From: yves Date: Thu, 12 Dec 2024 18:26:46 -0400 Subject: [PATCH] pkp/pkp-lib#10486 updates `canEditPublication` method call to pass Submission object instead of submission identifier. Signed-off-by: yves --- controllers/grid/users/chapter/ChapterGridHandler.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/grid/users/chapter/ChapterGridHandler.inc.php b/controllers/grid/users/chapter/ChapterGridHandler.inc.php index 8097ac269c6..9be404cbfb4 100644 --- a/controllers/grid/users/chapter/ChapterGridHandler.inc.php +++ b/controllers/grid/users/chapter/ChapterGridHandler.inc.php @@ -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; }