mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -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>
|
||||||
|
|
||||||
<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>{{$requestableModel->assets->where('requestable', '1')->count()}}</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Reference in a new issue