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:
snipe 2021-09-22 19:05:02 -07:00
parent a6b3aa5f04
commit 39a702397a

View file

@ -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">