-
Notifications
You must be signed in to change notification settings - Fork 457
Closed
Labels
Description
Bug Report
Users depend the informations register in their IDP can not have a name.
If it happen, we can have a case where we don't have any information about the owners or admins.
To reproduce
- Create a user without name but email
- Create a doc
- Invite this person as a admin or owner
- Invite another person as a reader
- Connect with this reader person
- Open the doc
- Open the modal
- The bug is here
Possible solution
Have a fallback on full_name if it is empty :
docs/src/backend/core/api/serializers.py
Lines 32 to 38 in c534fed
| class UserLightSerializer(UserSerializer): | |
| """Serialize users with limited fields.""" | |
| class Meta: | |
| model = models.User | |
| fields = ["full_name", "short_name"] | |
| read_only_fields = ["full_name", "short_name"] |
Ex (transform all punctuation in dash as a light obfuscation ?):
[email protected]becomeuser-3[email protected]becomejohn-doe3
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done