diff --git a/src/main/kotlin/pl/edu/uj/ii/ksi/mordor/controllers/admin/UsersController.kt b/src/main/kotlin/pl/edu/uj/ii/ksi/mordor/controllers/admin/UsersController.kt index cc58323..610b245 100644 --- a/src/main/kotlin/pl/edu/uj/ii/ksi/mordor/controllers/admin/UsersController.kt +++ b/src/main/kotlin/pl/edu/uj/ii/ksi/mordor/controllers/admin/UsersController.kt @@ -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 {