Skip to content

[NEW] Privacy for custom user fields#11332

Merged
ggazzo merged 2 commits intoRocketChat:developfrom
vynmera:custom-field-privacy
Jul 19, 2018
Merged

[NEW] Privacy for custom user fields#11332
ggazzo merged 2 commits intoRocketChat:developfrom
vynmera:custom-field-privacy

Conversation

@vynmera
Copy link
Copy Markdown
Contributor

@vynmera vynmera commented Jul 4, 2018

Related to #6515.
Recreation of #10891 as that PR got rather messy.
Closes #10979
Closes #8070

When using custom user fields, you might not want to expose rather private fields like statusConnection or their email. Currently, to view custom fields, the view-full-other-user-info permission is required.
This PR adds an optional public field to all Accounts_CustomFields entries, which overrides this requirement, so users without the permission can see the field.

Setup

2018-05-27_18-35-38
2018-05-27_18-35-46
The public field will default to false when not specified.

Preview

Any user can see all of their own fields.
2018-05-27_18-36-40
However, if they do not have the view-full-other-user-info permission, they can only see others' public fields.
2018-05-27_18-36-34
Of course, those with the view-full-other-user-info permission can always see all fields.
2018-05-27_18-36-19

@ggazzo ggazzo added the area: ui/ux Related to UI/UX, frontend code, accessibility, and user interaction label Jul 4, 2018
@ggazzo ggazzo added this to the 0.67.0 milestone Jul 4, 2018
ggazzo
ggazzo previously approved these changes Jul 19, 2018
ggazzo
ggazzo previously approved these changes Jul 19, 2018
@ggazzo ggazzo merged commit 56b43cf into RocketChat:develop Jul 19, 2018
@theorenck theorenck modified the milestones: 0.67.0, 0.68.0 Jul 19, 2018
@sampaiodiego sampaiodiego mentioned this pull request Jul 28, 2018
@localguru
Copy link
Copy Markdown
Contributor

Just a question: can I hide "Created at" and "Last login" with your patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui/ux Related to UI/UX, frontend code, accessibility, and user interaction

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants