remove notification deletion code when validating an account

This commit is contained in:
2026-03-18 09:55:10 +01:00
parent e713cc2857
commit 66266d1b4b
-7
View File
@@ -212,13 +212,6 @@ class UserController extends Controller
try { try {
$user = User::find($id); $user = User::find($id);
$content = "Nouvelle demande d'inscription : {$user->name} {$user->lastname}"; $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->validate = 1;
$user->role = 3; $user->role = 3;