Skip to content

Commit

Permalink
Fix remove moderator api throwing error (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
BentiGorlich authored Aug 6, 2024
1 parent 79b6695 commit 6c8e541
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function __invoke(
throw new BadRequestHttpException('Given user is not a moderator of this magazine');
}

$manager->removeModerator($moderator);
$manager->removeModerator($moderator, $this->getUserOrThrow());

return new JsonResponse(
$this->serializeMagazine($factory->createDto($magazine)),
Expand Down

0 comments on commit 6c8e541

Please sign in to comment.