Added withtrashed back in

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-06-22 16:40:32 +01:00
parent b82770d0a8
commit e03614d91b

View file

@ -336,7 +336,7 @@ class UsersController extends Controller
$this->authorize('delete', User::class);
$user = User::with('assets', 'assets.model', 'consumables', 'accessories', 'licenses', 'userloc')->first();
$user = User::with('assets', 'assets.model', 'consumables', 'accessories', 'licenses', 'userloc')->withTrashed()->first();
if (($user) && ($user->deleted_at == '')) {
// Delete the user