mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Add user permissions message if the user is not an admin or better
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
a6b3aa5f04
commit
39a702397a
|
@ -509,6 +509,12 @@
|
|||
@if (!Auth::user()->isSuperUser())
|
||||
<p class="alert alert-warning">Only superadmins may grant a user superadmin access.</p>
|
||||
@endif
|
||||
|
||||
@if (!Auth::user()->hasAccess('admin'))
|
||||
<p class="alert alert-warning">Only users with admins rights or greater may grant a user admin access.</p>
|
||||
@else
|
||||
farts
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<table class="table table-striped permissions">
|
||||
|
|
Loading…
Reference in a new issue