This commit is contained in:
Malibu
2015-02-17 23:07:12 +01:00
parent 860189859b
commit f90343a3ef
2 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,7 @@
</thead>
<tbody>
@foreach ($users as $user)
@if ($user->droits != 2 && $user != $me || ($user->droits != 0 && $me->droits == 2))
<form method="POST" role="form" action="deleteUser">
<input type="hidden" name="idUser" value="{{ $user->id }}">
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
@ -42,6 +43,7 @@
<td><button type="submit" class="btn btn-sm btn-danger"><span class="glyphicon glyphicon-trash"></span></a></td>
</tr>
</form>
@endif
@endforeach
</tbody>
</table>