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');
|
||||
|
|
|
@ -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