Skip to content

Commit

Permalink
Fix logic for determining whether users can add tags to a discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 committed Dec 16, 2020
1 parent 4a326ec commit bdfa6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Access/TagPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public function startDiscussion(User $actor, Tag $tag)
*/
public function addToDiscussion(User $actor, Tag $tag)
{
return $this->startDiscussion($actor, $tag);
return $actor->can('startDiscussion', $tag);
}
}

0 comments on commit bdfa6d0

Please sign in to comment.