From ea207241f3bec46347fbabce05387431a83547a3 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Mon, 3 Sep 2018 23:07:02 +0200 Subject: [PATCH] Use correct method from contract --- framework/core/src/Discussion/DiscussionPolicy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Discussion/DiscussionPolicy.php b/framework/core/src/Discussion/DiscussionPolicy.php index 3f002e291..d0b4e1c18 100644 --- a/framework/core/src/Discussion/DiscussionPolicy.php +++ b/framework/core/src/Discussion/DiscussionPolicy.php @@ -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') ); });