We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b46766e commit d3c98a7Copy full SHA for d3c98a7
src/Policies/PostPolicy.php
@@ -26,6 +26,6 @@ public function edit($user, Post $post)
26
*/
27
public function delete($user, Post $post)
28
{
29
- return Gate::forUser($user)->allows('deletePosts', $post->thread) || $user->getKey() === $post->user_id;
+ return Gate::forUser($user)->allows('deletePosts', $post->thread) || $user->getKey() === $post->author_id;
30
}
31
0 commit comments