Skip to content

Commit ea6eacb

Browse files
committed
Fixed chapter fetching during joint permission building
Somehow I accidentally deleted previous line 143 in this commit: 3839bf6 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.
1 parent 1036498 commit ea6eacb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Auth/Permissions/JointPermissionBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ protected function bookFetchQuery(): Builder
140140
return Book::query()->withTrashed()
141141
->select(['id', 'owned_by'])->with([
142142
'chapters' => function ($query) {
143+
$query->withTrashed()->select(['id', 'owned_by', 'book_id']);
143144
},
144145
'pages' => function ($query) {
145146
$query->withTrashed()->select(['id', 'owned_by', 'book_id', 'chapter_id']);

0 commit comments

Comments
 (0)