mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
97afafdd48
|
@ -632,7 +632,7 @@ class UsersController extends Controller
|
|||
{
|
||||
$user= User::where('id', $id)->first();
|
||||
$user->notify((new CurrentInventory($user)));
|
||||
return redirect()->back()->with('success', 'admin/users/general.user_notified');
|
||||
return redirect()->back()->with('success', trans('admin/users/general.user_notified'));
|
||||
}
|
||||
|
||||
return redirect()->back()->with('error', 'admin/accessories/message.user_does_not_exist');
|
||||
|
|
|
@ -158,7 +158,7 @@
|
|||
<div class="col-md-12 text-center">
|
||||
|
||||
@if (($user->isSuperUser()) || ($user->hasAccess('admin')))
|
||||
<i class="fas fa-crown fa-2x {{ ($user->isSuperUser()) ? 'text-danger' : ' text-orange'}}"></i>
|
||||
<i class="fas fa-crown fa-2x{{ ($user->isSuperUser()) ? ' text-danger' : ' text-orange'}}"></i>
|
||||
<div class="{{ ($user->isSuperUser()) ? 'text-danger' : ' text-orange'}}" style="font-weight: bold">{{ ($user->isSuperUser()) ? 'superadmin' : 'admin'}}</div>
|
||||
@endif
|
||||
|
||||
|
@ -280,13 +280,9 @@
|
|||
<div class="col-md-9">
|
||||
|
||||
@if ($user->isSuperUser())
|
||||
<label class="label label-danger">
|
||||
<i class="fas fa-crown" title="superuser"></i>
|
||||
</label>
|
||||
<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="admin"></i>
|
||||
</label>
|
||||
<label class="label label-warning"><i class="fas fa-crown" title="admin"></i></label>
|
||||
@endif
|
||||
{{ $user->username }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue