diff options
author | Andrew Tomaka <atomaka@gmail.com> | 2015-12-01 23:40:24 -0500 |
---|---|---|
committer | Andrew Tomaka <atomaka@gmail.com> | 2015-12-02 08:07:29 -0500 |
commit | daca985a6e75d6f43c5cc5b487a0942d5bf93f68 (patch) | |
tree | 579e8734014953e8aaa1c784cd4a857e50c6ed79 /app/views/admin | |
parent | 09e712c0fb721059e4b2619eb9fc104257fc492d (diff) | |
download | gitlab-ce-daca985a6e75d6f43c5cc5b487a0942d5bf93f68.tar.gz |
Prevent impersonation if blocked
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/users/_head.html.haml | 2 |
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 |