Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitize comment block for under 13 shares #22204

Merged
merged 8 commits into from
May 8, 2018

Conversation

Hamms
Copy link
Contributor

@Hamms Hamms commented May 4, 2018

When viewing a project created by an under-13 user, only the user themselves should be able to view comment blocks; all other users should see a sanitized version of the source.

image

TODO: need to figure out which version admins should see, and add a test for that case

@Hamms
Copy link
Contributor Author

Hamms commented May 4, 2018

@Hamms Hamms force-pushed the redact-comment-block-text-for-under-13-shares branch from 5bcd210 to c2ced6f Compare May 4, 2018 20:53
@Hamms Hamms changed the title Redact comment block text for under 13 shares Sanitize comment block text for under 13 shares May 4, 2018
@Hamms Hamms changed the title Sanitize comment block text for under 13 shares Sanitize comment block for under 13 shares May 4, 2018
@Hamms Hamms requested review from davidsbailey and islemaster and removed request for davidsbailey May 4, 2018 21:30
Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet. Planning to do the admin case before merging this PR, or in a follow-up?

@Hamms
Copy link
Contributor Author

Hamms commented May 4, 2018

Before merging; I figure the change itself will be small enough relative to the rest of this that it was worth getting a review beforehand

@Hamms
Copy link
Contributor Author

Hamms commented May 7, 2018

Improved and fixed tests; improved by adding tests for admin case, fixed by using a better stubbing method. PTAL

Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Hamms Hamms merged commit ff5ee25 into staging May 8, 2018
@Hamms Hamms deleted the redact-comment-block-text-for-under-13-shares branch May 31, 2018 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants