Open petterroea opened 6 years ago
Are you proposing we add a isImprisoned
boolean to the useroptions table?
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?
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.