mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Fixed #11224 - only show menu options if the user is allowed
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
711c713ab8
commit
01348187c8
|
@ -12,11 +12,15 @@
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<select name="bulk_actions" class="form-control select2" aria-label="bulk_actions">
|
<select name="bulk_actions" class="form-control select2" aria-label="bulk_actions">
|
||||||
<option value="edit">{{ trans('button.edit') }}</option>
|
@can('update', \App\Models\Asset::class)
|
||||||
<option value="delete">{{ trans('button.delete') }}</option>
|
<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>
|
<option value="labels">{{ trans_choice('button.generate_labels', 2) }}</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<button class="btn btn-primary" id="bulkEdit" disabled>{{ trans('button.go') }}</button>
|
<button class="btn btn-primary" id="bulkEdit" disabled>{{ trans('button.go') }}</button>
|
||||||
{{ Form::close() }}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue