mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 12:17:05 -08:00
Add authorization check in bulk users controller
This commit is contained in:
parent
ab90c0cf05
commit
4b02db5031
|
@ -99,6 +99,8 @@ class BulkUsersController extends Controller
|
|||
->withTrashed()
|
||||
->findMany($request->input('ids'));
|
||||
|
||||
$users->each(fn($user) => $this->authorize('view', $user));
|
||||
|
||||
return view('users.print')
|
||||
->with('users', $users)
|
||||
->with('settings', Setting::getSettings());
|
||||
|
|
Loading…
Reference in a new issue