mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-02 05:18:55 +08:00
Fixed chapter fetching during joint permission building
Somehow I accidentally deleted previous line 143 in this commit: 3839bf6bf11ac6b4d19c2ae8f62a314a2c164251 which would then break permission generation for content related to, or containing, chapters in the recycle bin. Found via user report (subz) & debugging in discord.
This commit is contained in:
parent
103649887f
commit
ea6eacb400
@ -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']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user