Commit 2f58ec96 authored by Nicolas Widart's avatar Nicolas Widart

Adding check for current user, remove able to delete

parent c341d8dd
......@@ -63,7 +63,9 @@
<td>
<div class="btn-group">
<a href="{{ URL::route('dashboard.user.edit', [$user->id]) }}" class="btn btn-default btn-flat"><i class="glyphicon glyphicon-pencil"></i></a>
<button class="btn btn-danger btn-flat" data-toggle="modal" data-target="#confirmation-{{ $user->id }}"><i class="glyphicon glyphicon-trash"></i></button>
<?php if ($user->id != \Cartalyst\Sentinel\Laravel\Facades\Sentinel::check()->id): ?>
<button class="btn btn-danger btn-flat" data-toggle="modal" data-target="#confirmation-{{ $user->id }}"><i class="glyphicon glyphicon-trash"></i></button>
<?php endif; ?>
</div>
</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment