From c9b9c1ddce6d692a3dee2566f9c059d49e970320 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Thu, 17 Dec 2020 19:51:53 -0500 Subject: [PATCH] Properly return allow / deny instead of boolean --- extensions/tags/src/Access/TagPolicy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/tags/src/Access/TagPolicy.php b/extensions/tags/src/Access/TagPolicy.php index c3314bbc5..3578712ca 100755 --- a/extensions/tags/src/Access/TagPolicy.php +++ b/extensions/tags/src/Access/TagPolicy.php @@ -34,6 +34,6 @@ class TagPolicy extends AbstractPolicy */ public function addToDiscussion(User $actor, Tag $tag) { - return $actor->can('startDiscussion', $tag); + return $actor->can('startDiscussion', $tag) ? $this->allow() : $this->deny(); } }