class ManageProjectStateController {

    @GetMapping
    public String manageProjectState(@ModelAttribute(value = "form", binding = false) ManageProjectStateForm form,
                                     BindingResult result,
                                     @PathVariable long projectId,
                                     Model model,
                                     UserResource user) {
        model.addAttribute("model",
                new ManageProjectStateViewModel(projectRestService.getProjectById(projectId).getSuccess(),
                        user.hasRole(Role.IFS_ADMINISTRATOR)));
        return "project/manage-project-state";
    }

}