Use correct method from contract

This commit is contained in:
Franz Liedke 2018-09-03 23:07:02 +02:00
parent 43fc2c0952
commit 85c965afbc
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

@ -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')
);
});