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

Handle ToS for logged in users #556

Open
7 tasks
annavik opened this issue Sep 5, 2024 · 0 comments
Open
7 tasks

Handle ToS for logged in users #556

annavik opened this issue Sep 5, 2024 · 0 comments

Comments

@annavik
Copy link
Member

annavik commented Sep 5, 2024

Summary

Follow up task from #513. On account creation, we want users to accept ToS from a checkbox or similar. For logged in users, we want to check if all current terms has been accepted. If not, we want to show a dialog with this info and ask for acceptance.

Sub tasks

Backend

  • Add new model for Terms (field for when the user agreed, field for when the term was created or modified, field for name & short description, field for slug/key to reference in frontend)
  • Add new endpoint - view all, and agree-to endpoint
  • Add terms data to the current user
  • Add terms check to all permission checks on the backend. Anything that requires a logged-in state needs to also check all of the terms.

Frontend

  • Make it possible to accept all terms as part of account creation
  • On ToS page, loop over terms, show if user has agreed and when
  • On periodic checks to /me for logged-in state, also check if the user has agreed to all terms. If not, show modal with terms that need to be agreed to.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant