Skip to content
Snippets Groups Projects

Resolve "Publish/Draft job offers"

Compare and
18 files
+ 266
7
Compare changes
  • Side-by-side
  • Inline

Files

@@ -454,6 +454,18 @@ public class JobOfferController {
@@ -454,6 +454,18 @@ public class JobOfferController {
.body(resource);
.body(resource);
}
}
 
/**
 
* Toggles the hiding of a job offer.
 
*
 
* @param id The id of the job offer.
 
* @return The page to load
 
*/
 
@PostMapping("{id}/toggle-hide")
 
@PreAuthorize("@authorisationService.isManagerOfAny()")
 
public String toggleHide(@PathVariable Long id) {
 
jobOfferService.toggleHide(id);
 
return "redirect:/job-offer/" + id;
 
}
// endregion
// endregion
}
}
Loading