mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Added a condition to ensure that only assets checked out to an user that is being deleted are updating their status (#9233)
This commit is contained in:
parent
5aa960603a
commit
d64b35c348
|
@ -174,7 +174,7 @@ class BulkUsersController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
$users = User::whereIn('id', $user_raw_array)->get();
|
$users = User::whereIn('id', $user_raw_array)->get();
|
||||||
$assets = Asset::whereIn('assigned_to', $user_raw_array)->get();
|
$assets = Asset::whereIn('assigned_to', $user_raw_array)->where('assigned_type', 'App\Models\User')->get();
|
||||||
$accessories = DB::table('accessories_users')->whereIn('assigned_to', $user_raw_array)->get();
|
$accessories = DB::table('accessories_users')->whereIn('assigned_to', $user_raw_array)->get();
|
||||||
$licenses = DB::table('license_seats')->whereIn('assigned_to', $user_raw_array)->get();
|
$licenses = DB::table('license_seats')->whereIn('assigned_to', $user_raw_array)->get();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue