Merge pull request #11189 from snipe/fixes/show_username_on_user_view_if_not_admin

Fixed bug where username wasn’t showing for regular users
This commit is contained in:
snipe 2022-05-24 10:48:55 -07:00 committed by GitHub
commit 810578ff5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -271,12 +271,16 @@
<div class="col-md-9">
@if ($user->isSuperUser())
<label class="label label-danger"><i class="fas fa-crown" title="superuser"></i></label> {{ $user->username }}
<label class="label label-danger">
<i class="fas fa-crown" title="superuser"></i>
</label>
@elseif ($user->hasAccess('admin'))
<label class="label label-warning"><i class="fas fa-crown" title="superuser"></i></label> {{ $user->username }}
<label class="label label-warning">
<i class="fas fa-crown" title="admin"></i>
</label>
@endif
{{ $user->username }}
</div>
</div>