fix: restrict edit and delete button access to admin and owner roles in Produk Buket
This commit is contained in:
parent
b1ea14e48a
commit
56f93d29bb
|
|
@ -56,6 +56,7 @@
|
|||
<i class="bi bi-eye"></i>
|
||||
</a>
|
||||
|
||||
@if (Auth::user()->role == 'admin_buket' || Auth::user()->role == 'pemilik')
|
||||
<a href="#" class="btn icon btn-warning btn-action" data-bs-toggle="modal"
|
||||
data-bs-target="#edit{{ $b->id_buket }}">
|
||||
<i class="bi bi-pencil"></i>
|
||||
|
|
@ -65,6 +66,22 @@
|
|||
data-bs-target="#delete{{ $b->id_buket }}">
|
||||
<i class="bi bi-trash"></i>
|
||||
</a>
|
||||
@else
|
||||
<span class="d-inline-block" data-bs-toggle="tooltip"
|
||||
title="Hanya dapat diakses oleh Admin Buket dan Pemilik">
|
||||
<button class="btn icon btn-warning btn-action disabled"
|
||||
style="pointer-events: none;" type="button" disabled>
|
||||
<i class="bi bi-pencil"></i>
|
||||
</button>
|
||||
</span>
|
||||
<span class="d-inline-block" data-bs-toggle="tooltip"
|
||||
title="Hanya dapat diakses oleh Admin Buket dan Pemilik">
|
||||
<button class="btn icon btn-danger btn-action disabled"
|
||||
style="pointer-events: none;" type="button" disabled>
|
||||
<i class="bi bi-trash"></i>
|
||||
</button>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Reference in New Issue