Remove unused attribute in staff listing

This commit is contained in:
Simon Bruder 2023-11-23 16:38:17 +01:00 committed by Denis Natusch
parent b4dfa72852
commit 3ebedd4ad8
No known key found for this signature in database
GPG key ID: 5E57BD8EDACFA985

View file

@ -21,7 +21,6 @@ public class StaffController {
@GetMapping("/staff")
@PreAuthorize("hasRole('ADMIN')")
public String getStaff(Model model) {
model.addAttribute("title", "Personalverwaltung");
model.addAttribute("staff", staffManagement.findAll());
return "staff";
}