Skip to content

Commit 60a11db

Browse files
committed
Fix permanent bulk deletion of posts
1 parent 35aee41 commit 60a11db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Livewire/Pages/ThreadShow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function deletePosts(Request $request, array $postIds, bool $permadelete)
130130
abort(403);
131131
}
132132

133-
$action = new DeletePosts($postIds, $this->shouldPermaDelete($permadelete));
133+
$action = new DeletePosts($postIds, $request->user()->can('viewTrashedPosts'), $this->shouldPermaDelete($permadelete));
134134
$result = $action->execute();
135135

136136
$this->touchUpdateKey();

0 commit comments

Comments
 (0)