Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
19d410d5
Commit
19d410d5
authored
May 13, 2021
by
Serena Fang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply MR review suggestions
Private method, describe current functionality
parent
0c8aacb8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
12 deletions
+5
-12
app/services/users/ban_service.rb
app/services/users/ban_service.rb
+2
-0
doc/user/admin_area/activating_deactivating_users.md
doc/user/admin_area/activating_deactivating_users.md
+1
-1
doc/user/admin_area/blocking_unblocking_users.md
doc/user/admin_area/blocking_unblocking_users.md
+1
-1
doc/user/admin_area/moderate_users.md
doc/user/admin_area/moderate_users.md
+1
-10
No files found.
app/services/users/ban_service.rb
View file @
19d410d5
...
...
@@ -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
...
...
doc/user/admin_area/activating_deactivating_users.md
View file @
19d410d5
...
...
@@ -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 -->
doc/user/admin_area/blocking_unblocking_users.md
View file @
19d410d5
...
...
@@ -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 -->
doc/user/admin_area/moderate_users.md
View file @
19d410d5
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment