remove notification deletion code when validating an account
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user