Commit 0df08101 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'docs-gerardo-master-patch-83810' into 'master'

Update loop to block user only if not blocked

See merge request gitlab-org/gitlab!74728
parents acaa798d d841f9f2
......@@ -618,7 +618,7 @@ users.count
# If that count looks sane:
# You can either block the users:
users.each { |user| user.block! }
users.each { |user| user.blocked? ? nil : user.block! }
# Or you can delete them:
# need 'current user' (your user) for auditing purposes
......
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