mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Make controller gate match dropdown gate
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
c02647a0fa
commit
3f0245f88f
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue