mirror of
https://github.com/snipe/snipe-it.git
synced 2026-05-03 21:25:19 +00: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:
committed by
GitHub
parent
5aa960603a
commit
d64b35c348
@ -174,7 +174,7 @@ class BulkUsersController extends Controller
|
||||
}
|
||||
|
||||
$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();
|
||||
$licenses = DB::table('license_seats')->whereIn('assigned_to', $user_raw_array)->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user