From 2218c94aa30fe83c460239cfdb4044c49e79baf6 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 25 Sep 2024 20:29:23 +0100 Subject: [PATCH] Gates the dropdown based on user permissions Signed-off-by: snipe --- .../partials/users-bulk-actions.blade.php | 45 +++++++++++-------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/resources/views/partials/users-bulk-actions.blade.php b/resources/views/partials/users-bulk-actions.blade.php index a1dbd25476..20d607a46f 100644 --- a/resources/views/partials/users-bulk-actions.blade.php +++ b/resources/views/partials/users-bulk-actions.blade.php @@ -1,24 +1,33 @@ -
+@can('view', \App\Models\User::class) +
{{ Form::open([ 'method' => 'POST', 'route' => ['users/bulkedit'], 'class' => 'form-inline', 'id' => 'usersBulkForm']) }} -@if (request('status')!='deleted') - @can('delete', \App\Models\User::class) -
- - - -
- @endcan -@endif - {{ Form::close() }} -
+ @if (request('status')!='deleted') + @can('delete', \App\Models\User::class) +
+ + + +
+ @endcan + @endif + {{ Form::close() }} +
+@endcan