mirror of
https://github.com/flarum/core.git
synced 2025-07-24 02:01:19 +02:00
Fix bad query in isVisibleTo
This commit is contained in:
@@ -120,7 +120,7 @@ class Post extends Model
|
||||
if ($discussion) {
|
||||
$this->setRelation('discussion', $discussion);
|
||||
|
||||
return (bool) $discussion->postsVisibleTo($user)->find($this->id)->count();
|
||||
return (bool) $discussion->postsVisibleTo($user)->where('id', $this->id)->count();
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user