diff --git a/app/Auth/Permissions/JointPermissionBuilder.php b/app/Auth/Permissions/JointPermissionBuilder.php index 79903c027..129b4a04d 100644 --- a/app/Auth/Permissions/JointPermissionBuilder.php +++ b/app/Auth/Permissions/JointPermissionBuilder.php @@ -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']);