Commit 70e6e625 authored by peterhegman's avatar peterhegman

Hide action buttons for special users

Hides the action buttons (Edit, Delete, Block, Deactivate)
for Ghost User, Alert Bot, and GitLab Support Bot.

The action buttons for these users was resulting on a 404
in the admin panel page.
parent 13851f12
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
= _('Last activity') = _('Last activity')
.table-mobile-content .table-mobile-content
= user.last_activity_on.nil? ? _('Never') : l(user.last_activity_on, format: :admin) = user.last_activity_on.nil? ? _('Never') : l(user.last_activity_on, format: :admin)
- unless user.internal?
.table-section.section-20.table-button-footer .table-section.section-20.table-button-footer
.table-action-buttons .table-action-buttons
= link_to _('Edit'), edit_admin_user_path(user), id: "edit_#{dom_id(user)}", class: 'btn btn-default' = link_to _('Edit'), edit_admin_user_path(user), id: "edit_#{dom_id(user)}", class: 'btn btn-default'
......
---
title: Hide admin user actions for ghost and bot users
merge_request: 27162
author:
type: fixed
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