Skip to content

Commit

Permalink
bug fix new chapter by collaborator role
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfyWin authored and Elorfin committed May 15, 2024
1 parent cc34cf3 commit 4e98ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/lesson/Manager/ChapterManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4e98ba4

Please sign in to comment.