mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Check permission before show links or not in requestable asset models view
This commit is contained in:
parent
6d1de73cad
commit
aa841a4674
|
@ -109,7 +109,14 @@
|
|||
|
||||
</td>
|
||||
|
||||
<td><a href='{{ url("/models/{$requestableModel->id}") }}' > {{ $requestableModel->name }} </a></td>
|
||||
<td>
|
||||
@if (Gate::allows('superadmin'))
|
||||
<a href='{{ url("/models/{$requestableModel->id}") }}' > {{ $requestableModel->name }} </a></td>
|
||||
@else
|
||||
{{ $requestableModel->name }}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>{{$requestableModel->assets->where('requestable', '1')->count()}}</td>
|
||||
|
||||
<td>
|
||||
|
|
Loading…
Reference in a new issue