From 9f3a12376998b3d43bb996dd5ab1b4d822e677c2 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 --- src/Access/TagPolicy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Access/TagPolicy.php b/src/Access/TagPolicy.php index c3314bbc..3578712c 100755 --- a/src/Access/TagPolicy.php +++ b/src/Access/TagPolicy.php @@ -34,6 +34,6 @@ public function startDiscussion(User $actor, Tag $tag) */ public function addToDiscussion(User $actor, Tag $tag) { - return $actor->can('startDiscussion', $tag); + return $actor->can('startDiscussion', $tag) ? $this->allow() : $this->deny(); } }