mirror of
https://github.com/flarum/core.git
synced 2025-07-31 21:50:50 +02:00
Use correct method from contract
This commit is contained in:
@@ -94,7 +94,7 @@ class DiscussionPolicy extends AbstractPolicy
|
||||
$query->whereNull('discussions.hide_time')
|
||||
->orWhere('start_user_id', $actor->id)
|
||||
->orWhere(function ($query) use ($actor) {
|
||||
$this->events->fire(
|
||||
$this->events->dispatch(
|
||||
new ScopeModelVisibility($query, $actor, 'hide')
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user