summaryrefslogtreecommitdiff
path: root/app/views/admin
diff options
context:
space:
mode:
authorAndrew Tomaka <atomaka@gmail.com>2015-12-01 23:40:24 -0500
committerAndrew Tomaka <atomaka@gmail.com>2015-12-02 08:07:29 -0500
commitdaca985a6e75d6f43c5cc5b487a0942d5bf93f68 (patch)
tree579e8734014953e8aaa1c784cd4a857e50c6ed79 /app/views/admin
parent09e712c0fb721059e4b2619eb9fc104257fc492d (diff)
downloadgitlab-ce-daca985a6e75d6f43c5cc5b487a0942d5bf93f68.tar.gz
Prevent impersonation if blocked
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/users/_head.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/users/_head.html.haml b/app/views/admin/users/_head.html.haml
index 8d1cab4137c..5e17b018163 100644
--- a/app/views/admin/users/_head.html.haml
+++ b/app/views/admin/users/_head.html.haml
@@ -6,7 +6,7 @@
%span.cred (Admin)
.pull-right
- - unless @user == current_user
+ - unless @user == current_user || @user.blocked?
= link_to 'Impersonate', impersonate_admin_user_path(@user), method: :post, class: "btn btn-grouped btn-info"
= link_to edit_admin_user_path(@user), class: "btn btn-grouped" do
%i.fa.fa-pencil-square-o