A free open source IT asset/license management system
Fixed #11224 - only show menu options if the user is allowed
snipe01348187c848
diff --git a/resources/views/partials/asset-bulk-actions.blade.php b/resources/views/partials/asset-bulk-actions.blade.phpindex 4a24a34ced..f6678d4478 100644--- a/resources/views/partials/asset-bulk-actions.blade.php+++ b/resources/views/partials/asset-bulk-actions.blade.php@@ -12,11 +12,15 @@</span></label><select name="bulk_actions" class="form-control select2" aria-label="bulk_actions">- <option value="edit">{{ trans('button.edit') }}</option>- <option value="delete">{{ trans('button.delete') }}</option>+ @can('update', \App\Models\Asset::class)+ <option value="edit">{{ trans('button.edit') }}</option>+ @endcan+ @can('delete', \App\Models\Asset::class)+ <option value="delete">{{ trans('button.delete') }}</option>+ @endcan<option value="labels">{{ trans_choice('button.generate_labels', 2) }}</option></select><button class="btn btn-primary" id="bulkEdit" disabled>{{ trans('button.go') }}</button>{{ Form::close() }}-</div>\ No newline at end of file+</div>