Skip to content
Snippets Groups Projects

Improve FlexDelft Exports + Bug Fixes

Files

@@ -127,8 +127,9 @@ public class ApplicationController {
*/
@PostMapping("reject/{personId}/{offerId}")
@PreAuthorize("@authorisationService.isManagerOfAny()")
public String rejectApplication(@PathVariable Long personId, @PathVariable Long offerId) {
applicationService.reject(personId, offerId);
public String rejectApplication(@AuthenticatedPerson Person person, @PathVariable Long personId,
@PathVariable Long offerId) {
applicationService.reject(personId, offerId, person.getId());
return "redirect:/job-offer/" + offerId;
}
@@ -140,8 +141,8 @@ public class ApplicationController {
*/
@PostMapping("reject-all-open/{offerId}")
@PreAuthorize("@authorisationService.isManagerOfJob(#offerId)")
public String rejectAllOpenInJobOffer(@PathVariable Long offerId) {
applicationService.rejectAllOpenInJobOffer(offerId);
public String rejectAllOpenInJobOffer(@AuthenticatedPerson Person person, @PathVariable Long offerId) {
applicationService.rejectAllOpenInJobOffer(offerId, person.getId());
return "redirect:/job-offer/" + offerId;
}
@@ -154,8 +155,9 @@ public class ApplicationController {
*/
@PostMapping("offer/{personId}/{offerId}")
@PreAuthorize("@authorisationService.isManagerOfAny()")
public String offerApplication(@PathVariable Long personId, @PathVariable Long offerId) {
applicationService.offer(personId, offerId);
public String offerApplication(@AuthenticatedPerson Person person, @PathVariable Long personId,
@PathVariable Long offerId) {
applicationService.offer(personId, offerId, person.getId());
return "redirect:/job-offer/" + offerId;
}
@@ -168,8 +170,9 @@ public class ApplicationController {
*/
@PostMapping("offer/{offerId}")
@PreAuthorize("@authorisationService.isManagerOfJob(#offerId)")
public String bulkOfferApplication(@PathVariable Long offerId, @RequestParam String identifiersAll) {
applicationService.bulkOffer(offerId, identifiersAll);
public String bulkOfferApplication(@AuthenticatedPerson Person person, @PathVariable Long offerId,
@RequestParam String identifiersAll) {
applicationService.bulkOffer(offerId, identifiersAll, person.getId());
return "redirect:/job-offer/" + offerId;
}
Loading