From 66266d1b4b0d3f7d9a8ff73eb98b4b41e712d30a Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Wed, 18 Mar 2026 09:55:10 +0100 Subject: [PATCH] remove notification deletion code when validating an account --- app/Http/Controllers/UserController.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index fc137b3..7b6f2da 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -212,13 +212,6 @@ class UserController extends Controller try { $user = User::find($id); $content = "Nouvelle demande d'inscription : {$user->name} {$user->lastname}"; - //$notification = Notification::where('user_id', $user->id) - $notification = Notification::where('content', $content)->first(); - - if ($notification) { - $notification->users()->detach(); - $notification->delete(); - } $user->validate = 1; $user->role = 3;