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

Age restriction on NFC ports #220

Open
petterroea opened this issue Jan 26, 2018 · 23 comments
Open

Age restriction on NFC ports #220

petterroea opened this issue Jan 26, 2018 · 23 comments

Comments

@petterroea
Copy link
Contributor

We should be able to disallow participants under a certain age from exiting during a given time. This should also be overrideable.

@halvors
Copy link
Contributor

halvors commented Jan 26, 2018

Are you proposing we add a isImprisoned boolean to the useroptions table?

@petterroea
Copy link
Contributor Author

Yes :D

@halvors
Copy link
Contributor

halvors commented Jan 26, 2018

Hmm. So if a user is under 18 years old. Add a global option to the user. So not per event.

@petterroea
Copy link
Contributor Author

15 and under

@petterroea
Copy link
Contributor Author

specifically, they aren't allowed out between 1 and 7 am if their parents havent given written access to it

@halvors
Copy link
Contributor

halvors commented Jan 26, 2018

How should this option be set? By parents? How should we administrate that?

@halvors
Copy link
Contributor

halvors commented Jan 26, 2018

So under 15 is disallowed by default?

@petterroea
Copy link
Contributor Author

People have to contact us, we set a flag on their account. We could do it like swimming. Yes, they are disallowed by default

@halvors
Copy link
Contributor

halvors commented Jan 26, 2018

So we just need a way to manually enable it for users whom we have a written concent from parens for?

@petterroea
Copy link
Contributor Author

Correct.

@halvors
Copy link
Contributor

halvors commented Jan 26, 2018

You answered my question already.

@petterroea
Copy link
Contributor Author

whoops

@petterroea
Copy link
Contributor Author

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

@halvors
Copy link
Contributor

halvors commented Jan 31, 2018

You want me to implement api stuff for this?

1 similar comment
@halvors
Copy link
Contributor

halvors commented Jan 31, 2018

You want me to implement api stuff for this?

@petterroea
Copy link
Contributor Author

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)

@halvors
Copy link
Contributor

halvors commented Feb 12, 2018

@petterroea Will you handle when lockdown hours is, if i provide an boolean for it on the user object?

@petterroea
Copy link
Contributor Author

@halvors a boolean in user object that specifies if the user should be locked or not?

@halvors
Copy link
Contributor

halvors commented Feb 12, 2018

@petterroea Yeah, just based on age and wheater concent is present for user or not?

@petterroea
Copy link
Contributor Author

yes, so the boolean should return age<age_limit(set in settings) && !allowedOutside, where allowedOutside is a flag settable by admins on accounts

@halvors
Copy link
Contributor

halvors commented Feb 12, 2018

@petterroea Create an entirely new table for "allowedOutside" flag, or use the "useroption" table for this?

@petterroea
Copy link
Contributor Author

i think useroption

@halvors
Copy link
Contributor

halvors commented Feb 12, 2018

Yeah, think so as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants