Commit 00cf529a authored by http://jneen.net/'s avatar http://jneen.net/

mark internal users in the admin panel

and don't offer to impersonate them
parent 90d924dc
......@@ -2,11 +2,13 @@
= @user.name
- if @user.blocked?
%span.cred (Blocked)
- if @user.internal?
%span.cred (Internal)
- if @user.admin
%span.cred (Admin)
.pull-right
- unless @user == current_user || @user.blocked?
- if @user != current_user && @user.can?(:log_in)
= link_to 'Impersonate', impersonate_admin_user_path(@user), method: :post, class: "btn btn-nr btn-grouped btn-info"
= link_to edit_admin_user_path(@user), class: "btn btn-nr btn-grouped" do
%i.fa.fa-pencil-square-o
......
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