Fixed #14935 - user does not exist

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-06-22 16:24:18 +01:00
parent 30c1e1e86a
commit 55e1326164

View file

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