From 4e98ba48c62374c2dffac948c85ef6b9824c39af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9becca=20Tinchon?= Date: Wed, 15 May 2024 10:40:08 +0200 Subject: [PATCH] bug fix new chapter by collaborator role --- src/plugin/lesson/Manager/ChapterManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin/lesson/Manager/ChapterManager.php b/src/plugin/lesson/Manager/ChapterManager.php index e6f891cf1eb..743f8c6854b 100644 --- a/src/plugin/lesson/Manager/ChapterManager.php +++ b/src/plugin/lesson/Manager/ChapterManager.php @@ -85,7 +85,7 @@ public function serializeChapterTree(Lesson $lesson): array */ public function createChapter(Lesson $lesson, array $data = [], Chapter $parent = null): Chapter { - $newChapter = $this->crud->create(Chapter::class, $data); + $newChapter = $this->crud->create(Chapter::class, $data, [Crud::NO_PERMISSIONS]); $newChapter->setLesson($lesson); $this->insertChapterInPlace($newChapter, $parent, $data);