mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Added withtrashed back in
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
b82770d0a8
commit
e03614d91b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue