mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 09:11:17 +08:00
FIX: use allowlist and blocklist terminology (#10209)
This is a PR of the renaming whitelist to allowlist and blacklist to the blocklist.
This commit is contained in:

committed by
GitHub

parent
5077cf52fd
commit
e0d9232259
@ -117,7 +117,7 @@ class UsersController < ApplicationController
|
||||
|
||||
users = users.filter { |u| guardian.can_see_profile?(u) }
|
||||
|
||||
preload_fields = User.whitelisted_user_custom_fields(guardian) + UserField.all.pluck(:id).map { |fid| "#{User::USER_FIELD_PREFIX}#{fid}" }
|
||||
preload_fields = User.allowed_user_custom_fields(guardian) + UserField.all.pluck(:id).map { |fid| "#{User::USER_FIELD_PREFIX}#{fid}" }
|
||||
User.preload_custom_fields(users, preload_fields)
|
||||
User.preload_recent_time_read(users)
|
||||
|
||||
|
Reference in New Issue
Block a user