Commit 19d410d5 authored by Serena Fang's avatar Serena Fang

Apply MR review suggestions

Private method, describe current functionality
parent 0c8aacb8
......@@ -16,6 +16,8 @@ module Users
end
end
private
def log_event(user)
Gitlab::AppLogger.info(message: "User banned", user: "#{user.username}", email: "#{user.email}", banned_by: "#{current_user.username}", ip_address: "#{current_user.current_sign_in_ip}")
end
......
......@@ -2,7 +2,7 @@
redirect_to: 'moderate_users.md'
---
This file was moved to [another location](moderate_users.md).
This document was moved to [another location](moderate_users.md).
<!-- This redirect file can be deleted after <2021-08-12>. -->
<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/#move-or-rename-a-page -->
......@@ -2,7 +2,7 @@
redirect_to: 'moderate_users.md'
---
This file was moved to [another location](moderate_users.md).
This document was moved to [another location](moderate_users.md).
<!-- This redirect file can be deleted after <2021-08-12>. -->
<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/#move-or-rename-a-page -->
......@@ -130,8 +130,7 @@ this feature for your GitLab instance.
### Ban a user
To completely block a user and hide the user's comments and issues from other users,
administrators can choose to ban the user.
To completely block a user, administrators can choose to ban the user.
Users can be banned using the Admin Area. To do this:
......@@ -139,14 +138,6 @@ Users can be banned using the Admin Area. To do this:
1. Select a user.
1. Under the **Account** tab, click **Ban user**.
Banning a user is functionally identical to [blocking a user](#blocking-and-unblocking-users),
with the following differences:
- Comments made by the banned user will be hidden from other users.
- Issues created by the banned user will be hidden from other users.
Personal projects, and group and user history of the blocked user are left intact.
NOTE:
This feature is a work in progress. Currently, banning a user
only blocks them and does not hide their comments or issues.
......
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