From 3f0245f88f03b7e7ec3e7903a6b88027c5e5c01d Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 25 Sep 2024 20:33:00 +0100 Subject: [PATCH] Make controller gate match dropdown gate Signed-off-by: snipe --- app/Http/Controllers/Users/BulkUsersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Users/BulkUsersController.php b/app/Http/Controllers/Users/BulkUsersController.php index 602f58f5f6..fbf08c9820 100644 --- a/app/Http/Controllers/Users/BulkUsersController.php +++ b/app/Http/Controllers/Users/BulkUsersController.php @@ -59,7 +59,7 @@ class BulkUsersController extends Controller // merge, confirm they have at least 2 users selected and display the merge screen } elseif ($request->input('bulk_actions') == 'merge') { - $this->authorize('update', User::class); + $this->authorize('delete', User::class); if (($request->filled('ids')) && (count($request->input('ids')) > 1)) { return view('users/confirm-merge')->with('users', $users); // Not enough users selected, send them back