end article start edit article

This commit is contained in:
Parpaillax
2024-04-26 14:29:43 +02:00
parent 5183bf0a7a
commit bd37441f9c
5 changed files with 18 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ public class UserInterceptor implements HandlerInterceptor {
if (authentication != null && authentication.isAuthenticated() && !authentication.getName().equals("anonymousUser")) {
UserProfil user = this.userService.utilisateurByName(authentication.getName());
if (modelAndView != null && modelAndView.getViewName() != null && !modelAndView.getViewName().startsWith("redirect:")) {
modelAndView.addObject("user", user.getCredit());
modelAndView.addObject("user", user);
}
}
}