diff --git a/extensions/tags/src/Api/DiscussionResourceFields.php b/extensions/tags/src/Api/DiscussionResourceFields.php index 832641685d..1bc643ae09 100644 --- a/extensions/tags/src/Api/DiscussionResourceFields.php +++ b/extensions/tags/src/Api/DiscussionResourceFields.php @@ -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();