Add authorization check in bulk users controller

This commit is contained in:
Marcus Moore 2024-09-23 16:26:22 -07:00
parent ab90c0cf05
commit 4b02db5031
No known key found for this signature in database

View file

@ -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());