From 55e132616490954a522964a035d120d327f6009e Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 22 Jun 2024 16:24:18 +0100 Subject: [PATCH] Fixed #14935 - user does not exist Signed-off-by: snipe --- app/Http/Controllers/Users/UsersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Users/UsersController.php b/app/Http/Controllers/Users/UsersController.php index 2eb78933ee..4805e7d20d 100755 --- a/app/Http/Controllers/Users/UsersController.php +++ b/app/Http/Controllers/Users/UsersController.php @@ -338,7 +338,7 @@ class UsersController extends Controller $user = User::with('assets', 'assets.model', 'consumables', 'accessories', 'licenses', 'userloc'); - if (($user) && ($user->deleted_at = '')) { + if (($user) && ($user->deleted_at == '')) { // Delete the user $user->delete(); return redirect()->route('users.index')->with('success', trans('admin/users/message.success.delete'));