-
Notifications
You must be signed in to change notification settings - Fork 2
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
Age restriction on NFC ports #220
Comments
Are you proposing we add a |
Yes :D |
Hmm. So if a user is under 18 years old. Add a global option to the user. So not per event. |
15 and under |
specifically, they aren't allowed out between 1 and 7 am if their parents havent given written access to it |
How should this option be set? By parents? How should we administrate that? |
So under 15 is disallowed by default? |
People have to contact us, we set a flag on their account. We could do it like swimming. Yes, they are disallowed by default |
So we just need a way to manually enable it for users whom we have a written concent from parens for? |
Correct. |
You answered my question already. |
whoops |
I think the user api should just return if the user account is exit limited or not. The age limit should be in settings.php, and i'l handle the actual access control in nfc code |
You want me to implement api stuff for this? |
1 similar comment
You want me to implement api stuff for this? |
i'l handle the nfc part, but i'd love if you could implement a user flag which specifies if a given user is allowed outside during lockdown hours or not(is set if parents contact us) |
@petterroea Will you handle when lockdown hours is, if i provide an boolean for it on the user object? |
@halvors a boolean in user object that specifies if the user should be locked or not? |
@petterroea Yeah, just based on age and wheater concent is present for user or not? |
yes, so the boolean should return age<age_limit(set in settings) && !allowedOutside, where allowedOutside is a flag settable by admins on accounts |
@petterroea Create an entirely new table for "allowedOutside" flag, or use the "useroption" table for this? |
i think useroption |
Yeah, think so as well. |
We should be able to disallow participants under a certain age from exiting during a given time. This should also be overrideable.
The text was updated successfully, but these errors were encountered: