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'));