mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
users: Pass bogus data for inaccessible users.
We now pass bogus data for inaccessible users when sending the users data in "realm_users" field of "register" response or when using endpoints like "GET /users" to get data of all the users in realm. We would add a client capability field in future commits such that new clients would receive data only for accessible users and they can form the bogus data by themselves.
This commit is contained in:
@@ -1919,6 +1919,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin, UserBaseSettings): # type
|
||||
# Foreign key to the Recipient object for PERSONAL type messages to this user.
|
||||
recipient = models.ForeignKey(Recipient, null=True, on_delete=models.SET_NULL)
|
||||
|
||||
INACCESSIBLE_USER_NAME = gettext_lazy("Unknown user")
|
||||
# The user's name. We prefer the model of a full_name
|
||||
# over first+last because cultures vary on how many
|
||||
# names one has, whether the family name is first or last, etc.
|
||||
|
||||
Reference in New Issue
Block a user