Skip to content

Commit

Permalink
Rename overlapping model and query string variable
Browse files Browse the repository at this point in the history
  • Loading branch information
apardyl committed Jan 11, 2019
1 parent 2339b93 commit 4509c80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ class UsersController(private val userRepository: UserRepository, private val us
}

@Secured(Permission.MANAGE_USERS_STR)
@PostMapping("/admin/user/{id}/")
@PostMapping("/admin/user/{userId}/")
fun userProfileEdit(
@PathVariable("id") userId: Long,
@PathVariable("userId") userId: Long,
@Valid @ModelAttribute("user") form: UserForm,
result: BindingResult
): ModelAndView {
Expand Down

0 comments on commit 4509c80

Please sign in to comment.