Skip to content

Commit

Permalink
fix method to save role/permission
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanediondev committed Jun 23, 2024
1 parent bae0893 commit e4b4f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/AppRoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function update(Request $request, string $role): Response
]);
}

#[Route('/app-roles/{role}/module/{module}/permission/{permission}', name: 'app_roles_permission', methods: ['GET'])]
#[Route('/app-roles/{role}/module/{module}/permission/{permission}', name: 'app_roles_permission', methods: ['POST'])]
public function permission(Request $request, string $role, string $module, string $permission): JsonResponse
{
$role = $this->appRoleManager->getByName($role);
Expand Down

0 comments on commit e4b4f37

Please sign in to comment.