Skip to content

Commit

Permalink
fix: suppression d un compte caisse possible
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainBlancheDNUM committed Jan 22, 2025
1 parent 8923fa3 commit 56cb76c
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ public ResponseEntity<Void> updateMembreInfo(@Valid @RequestBody MembreInfoDTO m
@PostMapping("/"+WebConstants.PARTENAIRE_PREFIX_URL+"/"+WebConstants.MEMBRE_NAME_URL+"/delete")
public ResponseEntity<String> deleteUserByEmail(@Valid @RequestBody MembreToDeleteDTO deleteObject, @SessionAttribute(name = MembreSessionManager.MEMBRE_SESSION_KEY) MembreSessionDTO userSession) {
try {
if (userSession.getGroupe()==GroupeEnum.CAISSE) {
return ResponseEntity.status(401).build();
}
if (userSession.getEmail().equalsIgnoreCase(deleteObject.getEmail())) {
membreService.deleteMembre(userSession, deleteObject.getEmail());
return ResponseEntity.ok("Utilisateur supprimé avec succès.");
Expand Down

0 comments on commit 56cb76c

Please sign in to comment.