Skip to content

Commit

Permalink
Fix route argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
jskowronski39 committed Jan 7, 2024
1 parent 9ba4259 commit 8151144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controller/UserGroup/DeleteAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(
) {
}

#[Route('/user-group/{id}/delete', name: 'app_user_group_delete')]
#[Route('/user-group/{name}/delete', name: 'app_user_group_delete')]
#[IsGranted(PermissionsEnum::USER_GROUP_DELETE->value, 'userGroup')]
public function __invoke(UserGroup $userGroup): Response
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/UserGroup/UpdateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(
) {
}

#[Route('/user-group/{id}/update', name: 'app_user_group_update')]
#[Route('/user-group/{name}/update', name: 'app_user_group_update')]
#[IsGranted(PermissionsEnum::USER_GROUP_UPDATE->value, 'userGroup')]
public function __invoke(Request $request, UserGroup $userGroup): Response
{
Expand Down

0 comments on commit 8151144

Please sign in to comment.