Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

Possible tweak to user admin view

edited October 2014 in Framework

So that a user can't delete him- or herself:

{% if User::$user->id != $data->loop_value->id %}
 | <a href="/user/delete?id={{ loop_value->id }}" onclick="return confirm ('{"Are you sure you want to delete this user?"}');">{"Delete"}</a>
{% end %}


Sign In or Register to comment.