mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -08:00
Fixed issue where group with no permissions would crash view page
This commit is contained in:
parent
5484b06df8
commit
0d11e32523
|
@ -42,12 +42,16 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
|
|
||||||
|
@if (is_array($group->decodePermissions()))
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
@foreach ($group->decodePermissions() as $permission_name => $permission)
|
@foreach ($group->decodePermissions() as $permission_name => $permission)
|
||||||
<li>{!! ($permission == '1') ? '<i class="fa fa-check text-success"></i>' : '<i class="fa fa-times text-danger"></i>' !!} {{ e(str_replace('.', ': ', ucwords($permission_name))) }} </li>
|
<li>{!! ($permission == '1') ? '<i class="fa fa-check text-success"></i>' : '<i class="fa fa-times text-danger"></i>' !!} {{ e(str_replace('.', ': ', ucwords($permission_name))) }} </li>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
@else
|
||||||
|
<p>This group has no permissions.</p>
|
||||||
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue