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

hide the publish/unpublish buttons for applab/playlab if under age 13 #15375

Merged
merged 1 commit into from May 25, 2017

Conversation

davidsbailey
Copy link
Member

It's possible for a student under age 13 who has a teacher to use an applab or gamelab project. This makes sure we don't show the publish / unpublish buttons for those projects. The server side work to prevent these projects from being published is already done in channels_api.rb.

side notes:

  • we are currently setting projectType for all new projects, but have not back-filled it for older projects yet.
  • further research indicated that Array.prototype.includes is not widely enough supported, so I've changed this to indexOf for that reason. sorry for the bad advice on the last PR related to this, Caley.

manually verified for under / over 13 and for projects with / without a projectType.

under 13

screen shot 2017-05-24 at 10 41 49 pm

over 13

screen shot 2017-05-24 at 10 44 53 pm

@davidsbailey davidsbailey merged commit f652230 into staging May 25, 2017
@davidsbailey davidsbailey deleted the hide-publish-under-13 branch May 25, 2017 16:33
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

3 participants