EvanZhouDev / zyma

Zyma is a simple attendance tracker, enabling easy check-in for anyone from clubs to corporation meetings.
https://zyma.vercel.app
1 stars 0 forks source link

Validating students #15

Open ThatXliner opened 9 months ago

ThatXliner commented 9 months ago

For ensuring that the students joining the attendance are actually part of the class, etc

ThatXliner commented 9 months ago

Closed in favor of #8

ThatXliner commented 9 months ago

Currently, students not part of a class are able to join a code because all /attend is doing is inserting (or more accurately, upserting) a student into the attendance table with a code.

I guess we can use RLS to determine if they should be able to insert their name with that code in the first place.

ThatXliner commented 9 months ago

Ok so @EvanZhouDev wants it so that non-attendees can join attendance. I guess we can make this instead a UI-only option of filtering attendees in the current group (and perhaps an update in the database config so that the non-attendees can be notified that their attendance didn't go through as the host only accepts those who are actually in the group)