Skip to content

Commit

Permalink
fix: breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Mar 28, 2024
1 parent df05db6 commit 0549555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/tags/src/Api/DiscussionResourceFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __invoke(): array
Schema\Relationship\ToMany::make('tags')
->includable()
->writable()
->required(fn (Discussion $discussion, Context $context) => ! $context->getActor()->can('bypassTagCounts', $discussion))
->required(fn (Context $context, Discussion $discussion) => ! $context->getActor()->can('bypassTagCounts', $discussion))
->set(function (Discussion $discussion, array $newTags, Context $context) {
$actor = $context->getActor();

Expand Down

0 comments on commit 0549555

Please sign in to comment.