Make controller gate match dropdown gate

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-09-25 20:33:00 +01:00
parent c02647a0fa
commit 3f0245f88f

View file

@ -59,7 +59,7 @@ class BulkUsersController extends Controller
// merge, confirm they have at least 2 users selected and display the merge screen // merge, confirm they have at least 2 users selected and display the merge screen
} elseif ($request->input('bulk_actions') == 'merge') { } 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)) { if (($request->filled('ids')) && (count($request->input('ids')) > 1)) {
return view('users/confirm-merge')->with('users', $users); return view('users/confirm-merge')->with('users', $users);
// Not enough users selected, send them back // Not enough users selected, send them back