mirror of
https://github.com/flarum/core.git
synced 2025-07-27 03:30:28 +02:00
Fix bad query in isVisibleTo
This commit is contained in:
@@ -120,7 +120,7 @@ class Post extends Model
|
|||||||
if ($discussion) {
|
if ($discussion) {
|
||||||
$this->setRelation('discussion', $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;
|
return false;
|
||||||
|
Reference in New Issue
Block a user