patch prod

This commit is contained in:
jleroy
2024-05-03 15:13:45 +02:00
parent 923b9c4579
commit e7342651f2

View File

@@ -59,6 +59,9 @@ public class ArticleController {
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
if (!authentication.getName().equals("anonymousUser")) {
Article article = articleService.findArticleById(id);
if (article == null) {
return "redirect:/enchere";
}
UserProfil user = userService.utilisateurById(article.getUtilisateur());
Categorie cate = categorieService.findCategorieById(article.getNumCategorie());
Retrait retrait = retraitService.findByNumArticle(article.getId());