Skip to content

Commit

Permalink
Added withtrashed back in
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed Jun 22, 2024
1 parent b82770d commit e03614d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Users/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public function destroy(DeleteUserRequest $request, $id = null)

$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
Expand Down

0 comments on commit e03614d

Please sign in to comment.