1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-06-23 07:21:38 +03:00

Merge branch 'development' into release

This commit is contained in:
Dan Brown
2022-10-21 21:52:16 +01:00

View File

@ -140,6 +140,7 @@ class JointPermissionBuilder
return Book::query()->withTrashed()
->select(['id', 'owned_by'])->with([
'chapters' => function ($query) {
$query->withTrashed()->select(['id', 'owned_by', 'book_id']);
},
'pages' => function ($query) {
$query->withTrashed()->select(['id', 'owned_by', 'book_id', 'chapter_id']);