oasis-art-project / oasis-server

Platform for the local arts
Other
2 stars 0 forks source link

Add date of birth field to users and minimum age to artworks for age verification #110

Closed codeanticode closed 2 years ago

codeanticode commented 3 years ago

Some artworks might be considered "age-restricted" so having a verified dob field in the user field could help dealing with this situation. Artworks tagged as "age-restricted" with a minimum age for viewing would be visible only to logged in visitors that have an age above the min age.

shishirpy commented 2 years ago

Do you think the following additions work?

# artworkModel.py
min_age = db.Column(db.Integer, nullable=True)
age_restricted = db.Column(db.Boolean, nullable=False)
# userModel.py
dob = db.Column(db.Date, nullable=True)
codeanticode commented 2 years ago

not a priority right now