diff --git a/app/Http/Controllers/Users/BulkUsersController.php b/app/Http/Controllers/Users/BulkUsersController.php index 60d5bb3713..36b20973a7 100644 --- a/app/Http/Controllers/Users/BulkUsersController.php +++ b/app/Http/Controllers/Users/BulkUsersController.php @@ -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());